Use consistent Prometheus target names.
Summary
Some Prometheus targets use localhost
, and some use 127.0.0.1
. These target names should be consistent for generating the config.
Steps to reproduce
Use the default configuration.
What is the current bug behavior?
These targets are generated by IP, not hostname.
- job_name: gitlab-unicorn
metrics_path: "/-/metrics"
static_configs:
- targets:
- 127.0.0.1:8080
- job_name: gitlab-sidekiq
static_configs:
- targets:
- 127.0.0.1:8082
What is the expected correct behavior?
The above targets should be localhost
.
Relevant logs
N/A
Details of package version
ii gitlab-ce 10.7.0-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis)
Environment details
- Operating System:
Debian Stretch
- Installation Target, remove incorrect values:
- VM: GCP
- Installation Type, remove incorrect values:
- N/A
- Is this a single or multiple node installation?
- Single
- Resources
- CPU:
REPLACE-WITH-DETAILS
- Memory total:
REPLACE-WITH-DETAILS
- CPU:
Configuration details
Default