Category : prometheus

I get from google search that, if you use Kubernettes, you can do this: – job_name: kubernetes-node-exporter kubernetes_sd_configs: – role: node relabel_configs: # Host name – source_labels: [__meta_kubernetes_node_name] target_label: instance But I use docker swarm, so I’d like to expose __meta_hostname, so I can do this: – job_name: docker-swarm-node-exporter relabel_configs: # Host name – source_labels: ..

Read more

I’m using someone else’s helm release of blackbox exporter that is configured to scrape a bunch of endpoints and it seemed to be doing so correctly. I’m planning to add different endpoints but I’ve noticed that, out of the templates in my working directory (for configuring the custom endpoints in the helm release), there are ..

Read more

I’m trying to show data from mysql database on prometheus. But I can’t find the query to show the data of my database. I’ve used docker and here’s how i connected prometheus and mysql exporter. -prometheus- docker run -d –name prometheus -h prometheus -p 9090:9090 -v C:Dockerprometheusprometheus.yml:/etc/prometheus/prometheus.yml prom/prometheus –config.file=/etc/prometheus/prometheus.yml -mysql-(* is my ip and the ..

Read more