Skip to content

Should weather.days.freezing appear on /metrics if I set "UseMetricsExporter": "prometheus" #5223

Closed Answered by dutts
dutts asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not quite sure why but when I try again this morning with the same (unchanged code) those metrics are now appearing, so will close this off.

For info, it's the .AddMeter(Instrumentation.MeterName) call in the metrics builder in Program.cs which is doing the work to add this custom metric into the output. This is what I was missing from my own personal projects.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dutts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant