0

I am trying to check the Prometheus configuration in one of the pods which are emitting metrics.

When I do curl to this pod using :

curl http://<pod-ip>:5000 

I am able to see the metrics, but I want to view and change the metric location and retention period. But, I am unable to locate the Prometheus configuration file. I checked in /etc directory, there is no Prometheus folder. Please help me locate the file and also if I need to install any package for this.

Pixzium Media
  • 109
  • 2
  • 10
  • I'm confused about what exactly you are checking. Is it some kind of Prometheus exporter, not Prometheus itself? If so, it is highly likely there is no neither metric location nor config file. You better use `netstat -ltpn` to find which process listen on `5000` port, and then check it command line to find cmd args. – Pavel Sapezhko Oct 19 '21 at 06:06
  • @PavelSapezhka. Yes, it might be possible that Prometheus is not installed, only the exporter is present. But, the issue is I can't even execute netstat command on the metric pod because of security reasons. We have 2 pods one is a metric emitting pod and another is sysdig pod. On the sysdig pod, netstat command works, I checked the netstat command and grep for Prometheus as below: # netstat -tulpn | grep -i prom tcp 0 0 127.0.0.1:9990 0.0.0.0:* LISTEN 99XXX/promscrape_v2 – Pixzium Media Oct 19 '21 at 08:05

0 Answers0