I'm running two servers with Ubuntu and one of them has grafana and prometheus running on it. I'm trying to rebuild the same environment on the other server however I fail to find the version of it. Searching with find / prometheus* also didn't have any result.
What should I do?
22 Answers
As suggested, with the command find / -iname '*prometheus*', the result included among other things:
/opt/prometheus/prometheus-0.20.0.linux-amd64
/opt/prometheus/prometheus-0.20.0.linux-amd64/prometheus.yml
/opt/prometheus/prometheus-0.20.0.linux-amd64/prometheusWhich shows the version is 0.20.0. Thanks a lot for the help.
Also, you can use ./prometheus -version in the folder to find the detail of the version:
prometheus, version 0.20.0 (branch: master, revision: aeab25c) build user: root@77050118f904 build date: 20160616-08:38:14 go version: go1.6.2 Perhaps it has changed in the last few years but I had to use two hyphens before version:
./prometheus --versionnot
./prometheus -version 2