question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change metric type names to lowercase

See original GitHub issue

After upgrading to Prometheus v2.4.0, the metrics endpoint exposed by my .NET services stopped working with the following error: invalid metric type "HISTOGRAM"

image

A related issue has been opened in the Prometheus repo, but apparently the fix should be done in the client library, as it’s not reporting the metric names as documented here.

Ref: https://github.com/prometheus/prometheus/issues/4602

Edit. More information:

  • Client version 1.3.5
  • .NET version: 4.5.2

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
sandersaarescommented, Sep 28, 2018
1reaction
sandersaarescommented, Sep 25, 2018

Thanks for the confirmation. I have pushed the button to publish as stable. It should show up when nuget.org does their refresh.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prometheus 2.36 – What's new?
In this new version, we can use two new actions that change the value of a metric to uppercase or lowercase. This is...
Read more >
What best practices are recommended for naming metrics ...
Rules and best practices for naming metrics. Metric names must start with a letter. Can only contain ASCII alphanumerics, underscores, and periods.
Read more >
Naming conventions for metrics and dimensions
Use periods or underscores as delimiters. Don't use colons or slashes. Avoid changing metric and dimension names. If you change a name, you...
Read more >
Prometheus change all nodenames to lowercase
Everything works fine but I got a problem with node/host names. I'm using AKS with one node pool and 8 nodes. An example...
Read more >
Metric and label naming
The metric and label conventions presented in this document are not required for using Prometheus, but can serve as both a style-guide and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found