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 optional support for data type and description for metrics #48
Comments
Just curious, what agents fail to scrape? |
@cristaloleg here's a link to prometheus docs describing the format. The |
I also found that the openmetrics standard also follows this format. |
@cristaloleg datadog agent drops the metrics if TYPE is not set, I have to map each metric to the correct type. |
https://cloud.google.com/stackdriver/docs/managed-prometheus/troubleshooting - same applicable for GCP, so it's reasonable to add these annotations and option to control it |
We should provide an option for user to decide whether |
@hagen1778 Is there any reason why |
Yes, VictoriaMetrics ignores this information on ingestion. Since the main user of the metrics lib is VictoriaMetrics itself, it was decided to omit extra complexity. |
Ok, so just |
The
It is pity that some third-party scrapers require the |
To anyone who's stuck on this like we were, we implemented support for Hope this helps! repo: https://github.com/ourzora/erigon-metrics |
New public method `ExposeMetadata` allows enabling exposition of dummy meta-info for all exposed metrics across all Sets. This feature is needed to improve compatibility with 3rd-party scrapers that require meta information to be present. This commit doesn't update exposition of default system/process metrics to keep the list of changes small. This change should be added in a follow-up commit. #48
* allow exposing meta information for registered metrics New public method `ExposeMetadata` allows enabling exposition of dummy meta-info for all exposed metrics across all Sets. This feature is needed to improve compatibility with 3rd-party scrapers that require meta information to be present. This commit doesn't update exposition of default system/process metrics to keep the list of changes small. This change should be added in a follow-up commit. #48 * cleanup * wip * wip * wip * wip --------- Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
Support for optional exposition of
This commit is included in the tag v1.28.0. Closing the feature request as done. |
Prometheus metrics generally list a data type and a description of the metric. Some agents even look for this data. It generally looks like something below.
I believe this library doesn't add the data type nor the description which makes it difficult for some agents to scrape the data points.
Would it be possible to add the ability to denote a description and data type for each metric?
The text was updated successfully, but these errors were encountered: