Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [prometheus-net]

The tag has no usage guidance.

prometheus-net
0 votes
1 answer
29 views

What is an analogue of the publishing-to-pushgateway mechanism or another in opentelemetry like in prometheus-net library?

What is an analogue of the publishing-to-pushgateway mechanism class in opentelemetry or another mechanism for sending metrics from a Windows application to the Web application (which collects all ...
Ксения Юдина's user avatar
0 votes
0 answers
99 views

Why the prometheus counter isn't always bigger that the previous sample?

I have setup prometheus-net in my ASP.net project and I have a counter for a job that processes products. This is the Histogram counter but I have noticed the same thing in simple counters The count ...
Menelaos Vergis's user avatar
0 votes
0 answers
382 views

What is system_runtime_cpu_usage metric in Prometheus?

I am using .net core application with the Prometheus client. In the metrics endpoint, I can see some metrics are exported but I want to know the implementation of those matrices. But in the client git ...
Samrat Alamgir's user avatar
1 vote
1 answer
1k views

How to enable Gzip compression for getting Prometheus metrics?

I'm using Prometheus (Prometheus.KestrelMetricServer) to export our services metrics. Everything is working but although the Accept-Encoding header is set to gzip, the response of GET localhost:port/...
ABS's user avatar
  • 2,754
0 votes
1 answer
654 views

PromQL query to show the number of incoming requests accurately

I'm having this problem with grafana to query the number of requests incoming to my service. Using Prometheus-net on my dotnet core Service, I have the "http_requests_received_total" which ...
Hesham Amer's user avatar
4 votes
2 answers
2k views

How setup .UseEndpoints for prometheus in .NET 7 with minimal API?

Before in .Net 6: app.UseRouting(); app.AddMetrics(); ( inside => app.UseMiddleware<PrometheusMetricsMiddleware>();) app.UseEndpoints(endpoint => endpoint.MapMetrics()); app....
user9309109's user avatar
0 votes
2 answers
2k views

Prometheus Net AspNet Core not supporting http2 protocol

I am trying to configure prometheues into a .Net Core 3.1 Application. My application runs on http2 protocol and I have the below configuration in appsetting.json. "Kestrel": { "...
Swaroop's user avatar
  • 521
0 votes
0 answers
1k views

Query Prometheus data using Kusto Query Language

I'm struggling trying to set up some Grafana dashboards using Prometheus data stored in Azure Monitor. So I have: An ASP.NET Core application running on AKS that exports Prometheus data via a /...
Joel's user avatar
  • 8,836
6 votes
1 answer
6k views

Expose ASP.NET Core Prometheus metrics on another port

I'm setting up a Prometheus exporter for my ASP.NET Core 3.1 app. I've imported <PackageReference Include="prometheus-net.AspNetCore" Version="4.1.1" /> And this is what I ...
Joel's user avatar
  • 8,836
0 votes
1 answer
1k views

Prometheus-net : callback to update a gauge when /metrics endpoint is called?

I'm not sure I got correctly how prometheus-net should be used but having a gauge that is time related I'd need to be able to update its value when data is being requested via the /metrics endpoint. I ...
whatever's user avatar
  • 3,335
2 votes
0 answers
539 views

Prometheus reports 200 but Response is actually 500

new to Prometheus here. I added it to my Core2.1 project and Startup.cs I am doing: public static IApplicationBuilder UseCustomMetricsMiddleware(this IApplicationBuilder app) { app....
Nick's user avatar
  • 2,897
7 votes
3 answers
9k views

How to report Prometheus-net metrics in ASP.NET 4.7.1

How can I use prometheus-net in a regular ASP.NET 4.7.1 application ? In .Net Core is quite easy, but I cannot find a nice way of reporting the metrics to Grafana in 4.7.1 The ideal would be to have ...
Vlad's user avatar
  • 832
1 vote
1 answer
325 views

How to use ActionFilter on Prometheus mapPath in standard .Net Web API?

I want to filter the range of client IPs who can route to Prometheus metrics. So in startup I have public void Configuration(IAppBuilder app) { ConfigureAuth(app); ...
Sarah Allen's user avatar
0 votes
1 answer
2k views

Prometheus: wildcard dns - based discovery

In the prometheus documentation, there is an example about service discovery using dns, in which the following snippet should be added to the configuration file: scrape_configs: - job_name: 'myjob' ...
pkaramol's user avatar
  • 18.6k
3 votes
2 answers
10k views

Prometheus returned error "server returned HTTP status 401 Unauthorized" for .NET core api

I have a .NET core API hosted in IIS which uses windows authentication. I'm using Prometheus to scrape metrics from this API. But I'm getting the error for the api target: "server returned HTTP ...
Renjith's user avatar
  • 45

15 30 50 per page