Skip to content

Fixing alert dashboard issue with grafana 5.x.x#579

Open
GowthamShanmugam wants to merge 1 commit into
Tendrl:masterfrom
GowthamShanmugam:grafana-5.x.x
Open

Fixing alert dashboard issue with grafana 5.x.x#579
GowthamShanmugam wants to merge 1 commit into
Tendrl:masterfrom
GowthamShanmugam:grafana-5.x.x

Conversation

@GowthamShanmugam

Copy link
Copy Markdown
Collaborator

I did small change to work existing alerting logic to work with
latest grafana.

tendrl-bug-id: #372

Signed-off-by: GowthamShanmugasundaram gshanmug@redhat.com

@GowthamShanmugam GowthamShanmugam requested a review from a team as a code owner October 4, 2018 16:49
@GowthamShanmugam

Copy link
Copy Markdown
Collaborator Author

@shtripat @cloudbehl @nthomas-redhat @anmolsachan, please review

I saw exiting logic also causing some issue with the alert dashboard, especially with a host alert dashboard. I did a very small change for that.

The main dashboard does not have any problem.

@GowthamShanmugam

Copy link
Copy Markdown
Collaborator Author

Verified


if 'dashboard' in dashboard_json:
dashboard_id = dashboard_json.get('dashboard').get('id')
response = dashboard_utils.set_home_dashboard(dashboard_id)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is redundant, So i removed it

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redundant line

@GowthamShanmugam

GowthamShanmugam commented Oct 4, 2018

Copy link
Copy Markdown
Collaborator Author

After fixing:

image

image

@shtripat shtripat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GowthamShanmugam

Copy link
Copy Markdown
Collaborator Author

We don't need to take this issue for now, we are still not moved to grafana 5.x.x

I did small change to work existing alerting logic to work with
latest grafana.

tendrl-bug-id: Tendrl#372

Signed-off-by: GowthamShanmugasundaram <gshanmug@redhat.com>
@codecov

codecov Bot commented Jan 14, 2019

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (master@e8798f2). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #579   +/-   ##
=========================================
  Coverage          ?   44.15%           
=========================================
  Files             ?       41           
  Lines             ?     2351           
  Branches          ?      352           
=========================================
  Hits              ?     1038           
  Misses            ?     1260           
  Partials          ?       53
Impacted Files Coverage Δ
tendrl/monitoring_integration/grafana/dashboard.py 18.64% <ø> (ø)
.../monitoring_integration/grafana/alert_dashboard.py 60.91% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e8798f2...0ece42f. Read the comment docs.

@shtripat shtripat left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. Make sure it tested extensively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants