Performance Metrics
Victoria Metrics can be configured to pull metrics from (scrape) any HTTP resource that exposes data in the Prometheus exposition format.
FMOS configures collectd, using the write_prometheus plugin1, to expose its metrics in this way. Collectd listens on TCP port 9103 (the same port as the Prometheus collectd exporter) and exposes metrics at http://localhost:9103/metrics. This port is never exposed to the network, irrespective of the vm_allow_outside setting.
Using Grafana with the Prometheus is FireMon's preferred metric protocol.
Connect Prometheus in Grafana
-
Log in to your Grafana account.
-
In the side menu, click Configuration.
-
Click the Data Source tab.
-
Click Add data source.
-
Select Prometheus from the list.
-
Enter a Name or use the Grafana system generated name.
-
In the HTTP section, in the URL field enter the SIP server URL.
-
In the Auth section, select the authentication type.
-
Additional fields can be configured to meet your network security guidelines. What has been provided is the minimum needed to connect to SIP.
-
Click Save & Test.
Expose the Victoria Metrics API to the network
-
Log in to the FMOS Control Panel.
-
On the toolbar, click OS > Metrics.
-
Enable the Allow outside access to Victoria Metrics field. TCP port 8428 is used for HTTP API.
-
Set the value to true.
-
When finished, click Stage Changes.
- If no other changes are being made, click Apply Configuration.