

If the sFlow agents don't provide host and ifname information, enable SNMP to retrieve sysName and ifName data to populate these fields:ĭocker run -name sflow-rt -p 8008:8008 -p 6343:6343/udp -d sflow/prometheus \īy default SNMP version 2c will be used with the public community string. Verify that the metrics are available using cURL: from flask import Flask from prometheusflaskexporter import PrometheusMetrics app Flask (name) metrics PrometheusMetrics (app) app.debug True app.route ('/', methods GET) def index (): return 'hello world' But I want to use my app in main, running python app.py. This pattern is only used for certain exporters, such as the blackbox and the SNMP exporter. the exporter subsequently starts the scrape after getting Prometheus’ GET requests and once it is done with scraping. The Docker sflow/prometheus image provides a simple way to run the application:ĭocker run -name sflow-rt -p 8008:8008 -p 6343:6343/udp -d sflow/prometheusĬonfigure sFlow agents to send data to the collector, 10.0.0.70, on port 6343. the exporter gets the targets and a query config string as parameters of Prometheus’ GET request. The Prometheus application is needed for exporting traffic flows, see Flow metrics with Prometheus and Grafana.
#Prometheus exporter update#
Update 19 October 2019, native support for Prometheus export added to sFlow-RT, Prometheus application no longer needed to run this example, use URL: /prometheus/metrics/ALL/ALL/txt. Prometheus stores metrics in a time series database that can be queries by Grafana to build dashboards. The sflow-rt/prometheus application extends the REST API to include native Prometheus exporter functionality allowing Prometheus to retrieve metrics.


#Prometheus exporter software#
The sFlow-RT analytics software converts the raw measurements into metrics that are accessible through a REST API. The diagram above shows the elements of the solution: sFlow telemetry streams from hosts and switches to an instance of sFlow-RT. This article will explore how industry standard sFlow telemetry streaming supported by network devices (Arista, Aruba, Cisco, Dell, Huawei, Juniper, etc.) and Host sFlow agents (Linux, Windows, FreeBSD, AIX, Solaris, Docker, Systemd, Hyper-V, KVM, Nutanix AHV, Xen) can be integrated with Prometheus to extend visibility into the network. Prometheus is an open source time series database optimized to collect large numbers of metrics from cloud infrastructure.
