-
Notifications
You must be signed in to change notification settings - Fork 805
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
Equivalent usage of Simpleclient in micrometer-registry-prometheus 1.13.x
#1226
Comments
Hi @siddhant16, could you provide more context on what you would like to achieve?
Sounds like you are manually collecting metrics in code. I'm wondering why you do that rather than just using Micrometer to expose a Prometheus endpoint? |
Thank you for the response. So, the MetricFamilySamples that are collected in the above code is to be used for custom metric generation and filtering. We filter the provided MetricsFamilySamples with the endpoint processor and also generate additional metrics for provided PrometheusMetrics using provided MetricFamilySample. Using the MetricFamilySamples to apply filtering,
|
Hi @fstab In addition to above I also wanted to know how we can get the names based on the type of metric, the MetricFamilySamples use to have getNames() like below,
|
Hi Team! We are migrating our project from
micrometer-registry-prometheus:1.12.8
to version1.13.8
. I see that theio.prometheus:simpleclient:jar:0.16.0
has been deprecated.We have few scenarios which I do not see in the migration guide.
Here are few scenarios,
io.prometheus.client.Collector.MetricFamilySamples
and theMetricFamilySamples.Sample
io.prometheus.metrics.model.registry.Collector
a replacement ofio.prometheus.client.Collector
, however, I couldn't find the below in the new Collector.io.prometheus.client.exporter.common.TextFormat
?Could you please help me with the code changes. Also, can you share any additional docs available that we can follow for migrating from the usage of simpleclient.
The text was updated successfully, but these errors were encountered: