Question on promtool and amtool

19 views
Skip to first unread message

kiran

unread,
Sep 12, 2020, 4:20:43 PM9/12/20
to Prometheus Users
Hello all

1. Is promtool automatically installed with Prometheus?
2. If Prometheus is installed in a docker container, how to use promtool to validate Prometheus.yml file
3. Is amtool automatically installed with alertmanager?
4. If alertmanager is installed in a docker container, how to use amtool to validate alertmanager.yml file

Brian Candler

unread,
Sep 13, 2020, 3:28:17 AM9/13/20
to Prometheus Users
On Saturday, 12 September 2020 21:20:43 UTC+1, kiran wrote:
Hello all

1. Is promtool automatically installed with Prometheus?

It's supplied as part of the distribution: 

# tar -tzf prometheus-2.20.1.linux-amd64.tar.gz
prometheus-2.20.1.linux-amd64/
prometheus-2.20.1.linux-amd64/LICENSE
prometheus-2.20.1.linux-amd64/NOTICE
prometheus-2.20.1.linux-amd64/tsdb
prometheus-2.20.1.linux-amd64/prometheus
prometheus-2.20.1.linux-amd64/console_libraries/
prometheus-2.20.1.linux-amd64/console_libraries/prom.lib
prometheus-2.20.1.linux-amd64/console_libraries/menu.lib
prometheus-2.20.1.linux-amd64/promtool
prometheus-2.20.1.linux-amd64/prometheus.yml
prometheus-2.20.1.linux-amd64/consoles/
prometheus-2.20.1.linux-amd64/consoles/node.html
prometheus-2.20.1.linux-amd64/consoles/prometheus-overview.html
prometheus-2.20.1.linux-amd64/consoles/prometheus.html
prometheus-2.20.1.linux-amd64/consoles/node-overview.html
prometheus-2.20.1.linux-amd64/consoles/index.html.example
prometheus-2.20.1.linux-amd64/consoles/node-disk.html
prometheus-2.20.1.linux-amd64/consoles/node-cpu.html
 
Whether it's "installed" or not depends on who or what is doing the installing.

2. If Prometheus is installed in a docker container, how to use promtool to validate Prometheus.yml file

Use "docker exec" to run promtool. (Or "kubectl exec" if it's running in kubernetes).
 
3. Is amtool automatically installed with alertmanager?

Same as before, it's included in the distribution tarball.
 
4. If alertmanager is installed in a docker container, how to use amtool to validate alertmanager.yml file

Same as before, "docker exec". 

kiran

unread,
Sep 13, 2020, 8:17:36 AM9/13/20
to Brian Candler, Prometheus Users
Thank you, Brian
--
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 view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fa6e3c7c-a902-43b4-a22e-01b6202e717eo%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages