-
Notifications
You must be signed in to change notification settings - Fork 1.2k
converts Resource
into a target_info
metric on the prometheus exporter
#3285
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
converts Resource
into a target_info
metric on the prometheus exporter
#3285
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #3285 +/- ##
=====================================
Coverage 77.8% 77.9%
=====================================
Files 164 164
Lines 11289 11319 +30
=====================================
+ Hits 8791 8821 +30
Misses 2301 2301
Partials 197 197
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A user may register the exporter with multiple exporters or other sources that generate a target info metric. An option to disable the target info metric should be include for the exporter to prevent multiple from being generated.
# Conflicts: # CHANGELOG.md # exporters/prometheus/confg_test.go # exporters/prometheus/config.go
Implements the required conversion of a metric
Resource
so it can be exported by the prometheus exporter, specs.The prometheus client lib doesn't have a
info
metric type, hence the usage of agauge
metric as suggested by the specs.Fixes #3166, #3271