Sunday, May 14, 2017

Using Prometheus with FAUCET

Here is a quick example of configuring and using Prometheus with FAUCET.

First, enable access to Prometheus to FAUCET (the Docker instructions in https://github.com/REANNZ/faucet/blob/master/docs/README_install.rst show how to enable access to port 9244).

Then install Prometheus. Under Ubuntu 16.0.4, this is as simple as:


apt-get install prometheus

Then configure Prometheus to scrape FAUCET. Under Ubuntu, edit /etc/prometheus/prometheus.yml, and under scrape_configs add a job for FAUCET:

scrape_configs:
  - job_name: 'faucet'

    target_groups:

       - targets: ['172.17.0.1:9244']

Restart Prometheus.


service prometheus restart

You should now be able to browse port 9090 on your Prometheus server, and draw graphs (for example, packet in rate):


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.