Skip to content

Conversation

@GowthamShanmugam
Copy link
Collaborator

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

tendrl-bug-id: #372

Signed-off-by: GowthamShanmugasundaram [email protected]

@GowthamShanmugam GowthamShanmugam requested a review from a team as a code owner October 4, 2018 16:49
@GowthamShanmugam
Copy link
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
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
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
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
Copy link
Collaborator Author

GowthamShanmugam commented Oct 4, 2018

After fixing:

image

image

Copy link
Member

@shtripat shtripat left a comment

Choose a reason for hiding this comment

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

LGTM

@GowthamShanmugam
Copy link
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 <[email protected]>
@codecov
Copy link

codecov bot commented Jan 14, 2019

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.

Copy link
Member

@shtripat shtripat left a comment

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