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 topology for self-scraping #566

Merged
merged 2 commits into from
Jan 25, 2024
Merged

Fix topology for self-scraping #566

merged 2 commits into from
Jan 25, 2024

Conversation

simskij
Copy link
Member

@simskij simskij commented Jan 25, 2024

Issue

Currently, we populate the unit name label with the charm name, and discard the unit name.

Solution

  • Make juju_unit the unit name.
  • Add juju_charm and store the charm name there.

Context

N/A

Testing Instructions

Check the labels for Prometheus up1 and make sure it has the right values.

Release Notes

Apply the correct Juju topology while self-scraping.

Copy link
Contributor

@PietroPasotti PietroPasotti left a comment

Choose a reason for hiding this comment

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

huh, seems wise.

@simskij
Copy link
Member Author

simskij commented Jan 25, 2024

@PietroPasotti any idea why the scenario tests would fail because of this? seems unrelated, but main is green.

@simskij simskij merged commit 2f4a6e3 into main Jan 25, 2024
13 checks passed
@simskij simskij deleted the fix/self-scraping-labels branch January 25, 2024 14:54
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.

3 participants