Hi all!
I’ve set up a prometheus docker container, am feeding metrics with telegraf and report with grafana. But in addition to the metrics of interested the grafana metrics browser lists a ton of metrics with names beiginning like “go_” and “prometheus_” I don’t care about. How do I remove all those metrics? I removed the scrape config from the default config file but they still appear.
The docker compose looks like this:
prometheus:
container_name: grafana-prom
image: prom/prometheus:latest
restart: unless-stopped
command:
- --web.enable-remote-write-receiver
- --config.file=/etc/prometheus/prometheus.yml
networks:
grafana-internal:
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
The prometheus.yml looks like this:
# my global config
global:
scrape_interval: 15s
evaluation_interval: 30s
body_size_limit: 15MB
sample_limit: 1500
target_limit: 30
label_limit: 30
label_name_length_limit: 200
label_value_length_limit: 200
# query_log_file: query.log
# scrape_failure_log_file: fail.log
# scrape_timeout is set to the global default (10s).
storage:
tsdb:
out_of_order_time_window: 30m
retention:
time: 30d
size: 1GB
Thanks and many greetings!