-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Support Prometheus StateSet and Info metrics #20621
Comments
Hi @aliaqel-stripe , I think I'm missing some context here (maybe due to my lack of familiarity with Kubernetes). What is the change to Vector that you are asking for exactly? |
Hi @jszwedko! Sorry about lack of clarity. The change I'm asking is that scraping of these types of metrics is implemented. I see that vector is aware of these types of metrics but when the metrics are served on a prometheus metrics endpoint,, vector does not know what to do with them
|
Not necessarily a kubernetes specific thing, but StateSet a metric type in OpenMetrics (https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#stateset) For reference, this is how OpenTelemetry handles conversions of StateSets to their type of metrics https://opentelemetry.io/docs/specs/otel/compatibility/prometheus_and_openmetrics/#stateset |
Ah, I see, it is a different metric type. Thanks for the additional context. This would be an enhancement to our metrics data model (likely) and then the Prometheus text parser. |
A note for the community
Use Cases
We want to scrape metrics from kube-state-metrics for custom resources and a certain kind of metric requires the implementation to be a StateSet. Unfortunately, we ran into lack of support for StateSet metrics in an older version of Vector and it appears it's not supported in a newer release either. I see references to the type in proto but no actual support for scraping.
Here's an example of a metric generated by kube-state-metrics that we want to use Stateset with kubernetes/kube-state-metrics#2070 (comment)
Attempted Solutions
No response
Proposal
No response
References
kubernetes/kube-state-metrics#2070 (comment)
Version
0.30.0
The text was updated successfully, but these errors were encountered: