Skip to content

Setting up prometheus endpoint into prometheus portal/Grafana #545

@kisalay19

Description

@kisalay19

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

app.UseHealthChecksPrometheusExporter("/prometheus");

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.

  1. I have a local environment of Prometheus running through docker in my system http://localhost:9090
  2. I have a local environment of Grafana running through docker in my system http://localhost:3030

Below are the references I am using in my .NET Core API :

  1. Microsoft.AspNetCore.Diagnostics.HealthChecks 2.2.0
  2. Microsoft.Extensions.Diagnostics.HealthChecks 3.1.4
  3. AspNetCore.HealthChecks.Prometheus.Metrics 3.1.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions