Prometheus-Thanos-Grafana Integration || error || open /etc/prometheus-shared/prometheus.yaml: no such file or directory

48 views
Skip to first unread message

Gaurav Nagarkoti

unread,
Jan 6, 2023, 4:52:56 AM1/6/23
to Prometheus Users
hi everyone,

w.r.t. Prometheus stateful set deployment I'm receiving the following error within logs

level=error msg="Error loading config (--config.file=/etc/prometheus-shared/prometheus.yaml)" file=/etc/prometheus-shared/prometheus.yaml err="open /etc/prometheus-shared/prometheus.yaml: no such file or directory"

  • would like to know the probable cause for the same
    • places to check
  • troubleshooting steps for  resolving the same 
  • any workaround
Thank you,
Gaurav N.

Stuart Clark

unread,
Jan 6, 2023, 6:45:59 AM1/6/23
to Gaurav Nagarkoti, Prometheus Users

As the error message says the file prometheus.yaml in the directory /etc/prometheus-shared doesn't exist, which is the configuration file for Prometheus.

You need to either ensure the file does exist at that location or adjust the command line to give the correct location if different.

-- 
Stuart Clark
Reply all
Reply to author
Forward
0 new messages