попробовал вот так, но ошибка
- job_name: 'dockerswarm'
dockerswarm_sd_configs:
- host: myip:9323
role: tasks
relabel_configs:
# Only keep containers that should be running.
- source_labels: [__meta_dockerswarm_task_desired_state]
regex: running
action: keep
# Use the prometheus-job Swarm label as Prometheus job label.
- source_labels: [__meta_dockerswarm_service_label_prometheus_job]
target_label: job
caller=manager.go:314 component="discovery manager scrape" msg="Cannot create service discovery" err="error setting up docker swarm client: unable to parse docker host `myip:9323`" type=dockerswarm
если дернуть curl myip:9323/metrics то метрики показываются
добавь http://
Обсуждают сегодня