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

Rename instance label to aws_resource #35

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

fheinecke
Copy link

The instance label typically stores an ARN or resource ID for a resource being monitored. This poses a problem when using the prometheus exporter with prometheus, because Prometheus automatically adds the instance label to metrics in a way that is particularly difficult to work around.

This PR renames the instance label to aws_resource, which should more accurately describe the label's purpose, and not collide with Prometheus' instance label.

@fheinecke fheinecke requested a review from taraspos May 30, 2024 03:46
@fheinecke fheinecke mentioned this pull request May 30, 2024
@taraspos
Copy link

Hmm... I think prometheus might automatically rename existing instance label to exported_instance and it's already being used in some of the dashboards:

@fheinecke
Copy link
Author

I think prometheus might automatically rename existing instance label to exported_instance and it's already being used in some of the dashboards

It depends on how this is deployed, and whether honor_labels is true or false (as you linked). IMO it's a better approach to not collide with a well-known Prometheus label, even if there is a workaround.

The Helm chart PR fixes this in the dashboard (tested and confirmed working), but I'd be glad to pull that change into this PR if you like, if this approach works for you.

Copy link

@taraspos taraspos left a comment

Choose a reason for hiding this comment

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

We need to remember to update some of our custom dashboards when upgrading aws-quota-checker to latest version

@fheinecke fheinecke merged commit af7d293 into teleport May 30, 2024
4 checks passed
@fheinecke fheinecke mentioned this pull request May 30, 2024
@taraspos taraspos deleted the fred/fix-label-name branch July 9, 2024 09:45
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