MetricPusher - i can't publish a metric on the server

28 views
Skip to first unread message

Ricardo Gonçalves

unread,
Oct 14, 2020, 2:00:13 PM10/14/20
to Prometheus Users
Hi,

Can someone help me, please?

My code is in attachment.

I created the Metric class to has the static construtor (here I create a MetricServer instance and start it). My Metric class has also all metrics that i need (for now it has just a Counter).

In CounterTest() method my objective is to publish something like:

example_of_a_name{sys="my-app-name",env="dev",comp="SenderX",ep="n/a",met="n/a",status_code="n/a"} 4

example_of_a_name{sys="my-app-name",env="dev",comp="SenderY",ep="n/a",met="n/a",status_code="n/a"} 1  

With this code, i don't have any error/exception but the metrics are not published on the server. 


MetricPusherTests.cs
Reply all
Reply to author
Forward
0 new messages