You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BLUF: I have been following some of the tutorials in setting up the blackbox exporter through the use of the Docker image, but using the default config files seems to throw an error for the labels field. Removing the labels field seems to make it work, but this doesn't seem intended.
# my global configglobal:
scrape_interval: 15s# Set the scrape interval to every 15 seconds. Default is every 1 minute.evaluation_interval: 15s# Evaluate rules every 15 seconds. The default is every 1 minute.# scrape_timeout is set to the global default (10s).# Alertmanager configurationalerting:
alertmanagers:
- static_configs:
- targets:
# - alertmanager:9093# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.rule_files:
# - "first_rules.yml"# - "second_rules.yml"# A scrape configuration containing exactly one endpoint to scrape:# Here it's Prometheus itself.scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"# metrics_path defaults to '/metrics'# scheme defaults to 'http'.static_configs:
- targets: ["localhost:9090"]
- job_name: "node"static_configs:
- targets: ['prom-node:9100']
- job_name: "postgres"static_configs:
- targets: ['prom-postgres:9187']
- job_name: "nginx"static_configs:
- targets: ['host.docker.internal:9113']
- job_name: "blackbox"static_configs:
- targets: ['host.docker.internal:9115']
What did you do that produced an error?
Used the default config file supplied by blackbox tutorials.
What did you expect to see?
This is what I see when I remove the Labels section from the config.
you are using the config from master with version: 0.25.0 of Blackbox exporter. config from the version 0.25.0 should work, please use the default config from https://github.com/prometheus/blackbox_exporter/blob/v0.25.0/blackbox.yml
labels was added in #1284, and is not released yet. the config from master should work if you build blackbox exporter from the master.
BLUF: I have been following some of the tutorials in setting up the blackbox exporter through the use of the Docker image, but using the default config files seems to throw an error for the labels field. Removing the labels field seems to make it work, but this doesn't seem intended.
Host operating system:
Linux caxton 6.10.8-arch1-2.1-g14 #1 SMP PREEMPT_DYNAMIC Sat, 07 Sep 2024 06:01:43 +0000 x86_64 GNU/Linux
blackbox_exporter version:
Docker 0.25.0
What is the blackbox.yml module config.
The result of
curl -o blackbox.yml https://raw.githubusercontent.com/prometheus/blackbox_exporter/master/blackbox.yml
What is the prometheus.yml scrape config.
What did you do that produced an error?
Used the default config file supplied by blackbox tutorials.
What did you expect to see?
This is what I see when I remove the Labels section from the config.
What did you see instead?
With the file as is.
The text was updated successfully, but these errors were encountered: