Prometheus - Metrics




The metric name specifies the general feature of a system that is measured (e.g. http_requests_total - the total number of HTTP requests received).

It may contain ASCII letters and digits, as well as underscores and colons. It must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*.



See Prometheus - Collector to configure when the metrics are collected.


By default, the metrics are available at:

  • targets/metrics

In a default conf, the metrics of Prometheus itself are at: http://localhost:9090/metrics

# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.
# TYPE go_gc_duration_seconds summary
go_gc_duration_seconds{quantile="0"} 0
go_gc_duration_seconds{quantile="0.25"} 0
go_gc_duration_seconds{quantile="0.5"} 0
go_gc_duration_seconds{quantile="0.75"} 0
go_gc_duration_seconds{quantile="1"} 0.0010366
go_gc_duration_seconds_sum 0.0020374
go_gc_duration_seconds_count 15
# HELP go_goroutines Number of goroutines that currently exist.
# TYPE go_goroutines gauge
go_goroutines 41

Built-in attributes: Job / instance

When Prometheus scrapes a target, it attaches some labels automatically to the scraped time series which serve to identify the scraped target:

  • job: The configured job name that the target belongs to.
  • instance: The <host>:<port> part of the target's URL that was scraped.

More … Doc

Powered by ComboStrap