Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Grafana Agent Node Exporter Quickstart dash #27

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

samuelallan72
Copy link
Contributor

@samuelallan72 samuelallan72 commented Nov 2, 2023

  • Use the prometheus datasource variable as expected by the COS tools.
  • Remove the old instance and job filter variables:
    • instance is a long generated string; use juju_unit instead (and not a multi-select for juju_unit, as this dashboard is designed to be used on one instance at a time)
    • job is also long and generated so we can't hard code it any more

Screenshots:

Before:

1704151243

1704151248

After:

1704152588

1704152601

Fixes #24

- Use the prometheus datasource variable as expected by the COS tools.
- Remove the old instance and job filter variables:
  - instance is a long generated string; use juju_unit instead
  - job is also long and generated so we can't hard code it any more

Fixes canonical#24
@samuelallan72
Copy link
Contributor Author

I don't know why there is a duplicate grafana_dashboards/ directory - I edited the one in src/grafana_dashboards, which seems to be the one that is used by the charm. The charm appears to simply copy src/grafana_dashboards to ./grafana_dashboards, so maybe the grafana_dashboards dir doesn't get built into the charm? Can we delete it from the git repo to avoid confusion?

@simskij
Copy link
Member

simskij commented Dec 1, 2023

I don't know why there is a duplicate grafana_dashboards/ directory - I edited the one in src/grafana_dashboards, which seems to be the one that is used by the charm. The charm appears to simply copy src/grafana_dashboards to ./grafana_dashboards, so maybe the grafana_dashboards dir doesn't get built into the charm? Can we delete it from the git repo to avoid confusion?

From what I can tell there is no such folder in the repo, not here nor in your fork. Am I missing something? If not, I'm ok with having this merged.

@samuelallan72
Copy link
Contributor Author

@simskij ah my bad, it was there for me locally, but must have been generated by something; I looked just now, and it wasn't checked into git. you can ignore that comment. :)

@sed-i
Copy link
Contributor

sed-i commented Dec 5, 2023

@simskij ah my bad, it was there for me locally, but must have been generated by something; I looked just now, and it wasn't checked into git. you can ignore that comment. :)

It's generated by utests.

Copy link
Contributor

@sed-i sed-i left a comment

Choose a reason for hiding this comment

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

Looks good @samuelengineer!
Could you please paste a screenshot in the PR description showing how the dashboard looks without the job and instance label matchers?

@samuelallan72
Copy link
Contributor Author

@sed-i happy new year! PR description updated with screenshots. :)

@lucabello lucabello requested a review from sed-i January 16, 2024 09:00
@lucabello
Copy link
Contributor

@sed-i can this be merged? :)

@sed-i sed-i merged commit 7f11194 into canonical:main Jan 26, 2024
12 checks passed
@samuelallan72 samuelallan72 deleted the fix-exporter-quickstart-grafana branch March 25, 2024 23:35
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.

Grafana Agent Node Exporter Quickstart dashboard fails out of the box
4 participants