May 2019
Intermediate to advanced
442 pages
11h 36m
English
As Pushgateway is a centralized point where instances push their metrics, when a scrape is performed by Prometheus, the label instance will be automatically set to the Pushgateway server address/port for every single metric it exposes, and the label job to whatever name was set in the Prometheus scrape job definition. On label collision, Prometheus renames the original labels to exported_instance and exported_job, respectively. To avoid this behavior, honor_labels: true should be used in the scrape job definition to guarantee the labels that prevail are the ones coming from Pushgateway.
The noteworthy runtime configuration for our test case is as follows:
|
Flag |
Description |
|
--web.listen-address |
Bind address, defaults ... |
Read now
Unlock full access