I have a prometheus pod running on Kubernetes cluster.I have blackbox installed and module http_2xx running in the same box.curl -l 10.45.35.25:9115<html><head><title>Blackbox Exporter</title></head><body><h1>Blackbox Exporter</h1><p><a href="/probe?target=prometheus.io&module=http_2xx">Probe prometheus.io for http_2xx</a></p><p><a href="/metrics">Metrics</a></p></body>I have the following endpoint in prometheus configmap- job_name: 'kubernetes-services'metrics_path: /probeparams:module: [http_2xx]kubernetes_sd_configs:- role: servicerelabel_configs:- source_labels: [__meta_kubernetes_service_annotation_prometheus_io_probe]action: keepregex: true
- source_labels: [__address__]target_label: __param_target- target_label: __address__replacement: 10.45.35.25:9115- source_labels: [__param_target]target_label: instance- action: labelmapregex: __meta_kubernetes_service_label_(.+)- source_labels: [__meta_kubernetes_namespace]target_label: kubernetes_namespace- source_labels: [__meta_kubernetes_service_name]target_label: kubernetes_name.In the target page in Prometheus 'kubernetes-services' is not getting reflected. Please help.RegardsGayatri
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/47ad437d-0ed4-4c3f-a1fb-a081e21278da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sorry I don't get it. I set up blackbox as linux process and mentioned the IP:port in the service endpoint in Kubernetes. Am I missing out that something essential?RegardsGayatri
I have addedmetadata:annotations:prometheus.io/probe: "true" in the service I want to monitor and I could see it is getting reflected in 'targets' Prometheus under the job for blackbox.My requirement is to trigger alert if the service is deleted accidentally. Once the service is deleted ,it is not shown in probe_success. Please let me know if there is any optimum way to monitor this.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5adc9a18-42de-4af0-ace8-71976a7c49f2%40googlegroups.com.