Open kisalay19 opened 4 years ago
@kisalay19 you need to configure prometheus to scrap the output, typically by providing a prometheus.yml
`global: scrape_interval: 15s evaluation_interval: 15s
scrape_configs:
i added this:
metrics_path: '/health_metrics'
if you use
app.UseHealthChecksPrometheusExporter("/health_metrics");
so because you use /prometheus
app.UseHealthChecksPrometheusExporter("/prometheus");
you should add
metrics_path: '/prometheus'
to your yaml file as prometheus configuration file
result something like this:
job_name: 'health_check_exporter'
scrape_interval: 5s
metrics_path: '/prometheus'
static_configs:
targets: ['someservice:9110']`
i suggest use this for grafana dashboard :
import this and enjoy it:
this can close
This is a general query and not an issue but more of a help needed in understanding how to push results to prometheus.
Below is my setup in Startup.cs
On browsing this endpoint I can see the page in Prometheus text format. Now how do I visualize or link this data in the actual prometheus environment or Grafana.
Below are the references I am using in my .NET Core API :