prometheus-proc-0.1.2.0: Export metrics from /proc for the current process

Safe HaskellNone
LanguageHaskell2010

Prometheus.Metric.Proc

Description

This module exposes a prometheus-client Metric for exporting information about the currently running process.

Synopsis

Documentation

data ProcMetrics Source #

The tag for procMetrics.

Constructors

ProcMetrics 

procMetrics :: Metric ProcMetrics Source #

Unregistered metrics for the current process. This is to be used with register to register the metrics.

This exports the following:

  • process_cpu_seconds_total
  • process_start_time_seconds
  • process_virtual_memory_bytes
  • process_resident_memory_bytes

See the official Prometheus documentation for more information on these standard metrics: https://prometheus.io/docs/instrumenting/writing_clientlibs/#standard-and-runtime-collectors