Ad Widget

Collapse

Get Promethus metrics with certs enabled using zabbix http agent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raghavendra
    Junior Member
    • Sep 2021
    • 4

    #1

    Get Promethus metrics with certs enabled using zabbix http agent

    HI there, Could someone please help me how I can set up http agent to get Prometheus metrics having a https url which requires certs and tls specific tags while retrieving the metrics.
    Zabbix Agent with system.run[curl -s --tlsv1.2 --tls-max 1.2 --key /tmp/server.key --cert /tmp/server.crt --cacert /tmp/cacrt.pem https://182.90.215.216:5000/metrics] works perfectly fine.
    But I am finding hard to translate the exact command into http agent. Any help or leads is really appreciated.

    I have tried below but getting this Cannot perform request: Connection timed out after 10001 milliseconds

    Click image for larger version

Name:	Screenshot 2021-09-07 at 7.16.27 PM.png
Views:	199
Size:	166.4 KB
ID:	431157
    Last edited by raghavendra; 07-09-2021, 16:01.
Working...