sipcapture / heplify-server

HEP Capture Server for HOMER
https://sipcapture.org
GNU Affero General Public License v3.0
184 stars 85 forks source link

Grafana Variable with IP #390

Closed qttrl closed 4 years ago

qttrl commented 4 years ago

Is it possible with the Grafana dashboards from homer to define variable with IP of SIP client and present metrics from Prometheus from a specific IP instead of overall statistics?

negbie commented 4 years ago

Yes just configure PromTargetIP and PromTargetName in heplify-server.toml like this:

PromTargetIP = "1.1.1.1, 2.2.2.2" PromTargetName = "Asterisk1, Asterisk2"

Keep in mind that order is important. With that everything from or to IP 1.1.1.1 will get the Prometheus label Asterisk1 and everything from or to IP 2.2.2.2 will get the Prometheus label Asterisk2