metrics.mk

metrics-collect-target

Synopsis: make metrics-collect-target

Hooks: none

Variables:

Variable

Description

METRICS_ENDPOINT

<URL of the metrics collection endpoint>

METRICS_ENABLED

<true or false>. Enable or disable metrics collection. Default true.

METRICS_DEBUG

<true or false>. Enable or disable debug output for curl. Default false.

CURL_DEBUG_OPTS

<curl debug options>. Custom debug options for curl. Default “-v –trace-ascii /dev/stderr”

METRICS_CURL_OPTIONS

<curl options>. Custom options for curl. Default “–max-time 5 –retry 3 –retry-delay 1 –connect-timeout 3”

Collect and send target metrics to the specified endpoint. Metrics collection is only performed if METRICS_ENABLED is true and CI_JOB_ID is set.

metrics-collect-job

Synopsis: make metrics-collect-job

Hooks: none

Variables:

Variable

Description

METRICS_ENDPOINT

<URL of the metrics collection endpoint>

METRICS_ENABLED

<true or false>. Enable or disable metrics collection. Default true.

METRICS_DEBUG

<true or false>. Enable or disable debug output for curl. Default false.

CURL_DEBUG_OPTS

<curl debug options>. Custom debug options for curl. Default “-v –trace-ascii /dev/stderr”

METRICS_CURL_OPTIONS

<curl options>. Custom options for curl. Default “–max-time 5 –retry 3 –retry-delay 1 –connect-timeout 3”

Collect and send job metrics to the specified endpoint. Metrics collection is only performed if METRICS_ENABLED is true and CI_JOB_ID is set.

metrics-collect-pipeline

Synopsis: make metrics-collect-pipeline

Hooks: none

Variables:

Variable

Description

METRICS_ENDPOINT

<URL of the metrics collection endpoint>

METRICS_ENABLED

<true or false>. Enable or disable metrics collection. Default true.

METRICS_DEBUG

<true or false>. Enable or disable debug output for curl. Default false.

CURL_DEBUG_OPTS

<curl debug options>. Custom debug options for curl. Default “-v –trace-ascii /dev/stderr”

METRICS_CURL_OPTIONS

<curl options>. Custom options for curl. Default “–max-time 5 –retry 3 –retry-delay 1 –connect-timeout 3”

Collect and send pipeline metrics to the specified endpoint. Metrics collection is only performed if METRICS_ENABLED is true and CI_JOB_ID is set.