joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
317 stars 87 forks source link

value __address__ before relabel does not contain the port 8080 #62

Closed yvesdeceuleners closed 3 years ago

yvesdeceuleners commented 3 years ago

The image cert-exporter:v2.4.0 is instantiated in a container running on the master node of an upstream K8s cluster to monitor the certificates of the cluster. There is a prometheus framework installed and operational, keeping an eye on amongst others services and infrastructure.

In the manifest of the DaemonSet, we have annotations for prometheus where we specify to scrape, the path and the port. The latter is set to 8080.

In our global configuration of prometheus, we configured a job for the pods in the cluster. For those that are visible in prometheus, the pod for the cert-exporter is not showing port (8080) in the label address. It only contains the IP address, where other pods are showing the combination of IP address and port. This results in a status Down for that endpoint.