-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add logging and metrics #10
Conversation
634ea7f
to
4b03255
Compare
5e354ee
to
58ef2ab
Compare
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.
This looks good! Just some comments about logging levels.
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.
this looks good -- I am not sure how labels get applied, but let's test that.
Approving so as not to block on this small change
expMetrics: ` | ||
# HELP influxdb_proxy_ingester_data_conversion_seconds Time (in seconds) spent converting ingested InfluxDB data into Prometheus data. | ||
# TYPE influxdb_proxy_ingester_data_conversion_seconds histogram | ||
influxdb_proxy_ingester_data_conversion_seconds_bucket{le="0.005"} 0 |
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.
Do we need to set some labels? I am not sure how that works, but we want to make sure the metrics get tagged with the hostname and cluster, etc. That's normally part of the Registerer I think? Can you make a change in the test so a label gets applied to these metrics so we can confirm that works?
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.
I confirmed that the namespace and cluster labels are added at a later point, so they wouldn't be added for the unit test
This PR adds metrics and logging to the influx2cortex proxy.