documentation.md 1.6 KB

httpcheck

Default Metrics

The following metrics are emitted by default. Each of them can be disabled by applying the following configuration:

metrics:
  <metric_name>:
    enabled: false

httpcheck.duration

Measures the duration of the HTTP check.

Unit Metric Type Value Type
ms Gauge Int

Attributes

Name Description Values
http.url Full HTTP request URL. Any Str

httpcheck.error

Records errors occurring during HTTP check.

Unit Metric Type Value Type Aggregation Temporality Monotonic
{error} Sum Int Cumulative false

Attributes

Name Description Values
http.url Full HTTP request URL. Any Str
error.message Error message recorded during check Any Str

httpcheck.status

1 if the check resulted in status_code matching the status_class, otherwise 0.

Unit Metric Type Value Type Aggregation Temporality Monotonic
1 Sum Int Cumulative false

Attributes

Name Description Values
http.url Full HTTP request URL. Any Str
http.status_code HTTP response status code Any Int
http.method HTTP request method Any Str
http.status_class HTTP response status class Any Str