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

Replace instance to juju_unit for the metric joins #377

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

Deezzir
Copy link
Contributor

@Deezzir Deezzir commented Dec 13, 2024

Fixes: #367

The bug occurs because the instance label is always set to localhost:10201. If you have multiple hosts, there might be duplicate drive names coming from different hosts; and because the label is not unique, there will be conflicts during the joins for some Smartctl graphs. So it's better to use the juju_unit label which is guaranteed to be unique.

Copy link
Member

@gabrielcocenza gabrielcocenza left a comment

Choose a reason for hiding this comment

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

LGTM, but please explain in the PR description why we are changing this

Copy link
Contributor

@aieri aieri left a comment

Choose a reason for hiding this comment

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

lgtm

@Deezzir Deezzir merged commit a6e9391 into canonical:main Dec 13, 2024
10 checks passed
@Deezzir Deezzir deleted the SOLENG-982 branch December 13, 2024 21:12
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.

Smartctl Grafana dashboard doesn't work
3 participants