Skip to main content
Version: 6.0

Prometheus & Grafana

This page explains how to setup Prometheus and Grafana to monitor the ElastiFlow Unified Flow Collector.


  1. The ElastiFlow Unified Flow Collector is running and the metrics endpoint is reachable. (Reachable @
  2. Prometheus is installed & running and can reach the Flow Collector Metrics endpoint. (Prometheus default @
  3. Grafana is installed & running and can reach Prometheus. (Grafana default @

ElastiFlow Metrics Endpoint

  • Verify the ElastiFlow Unified Flow Collector & Metrics Endpoint have successfully started (logs in /var/log/elastiflow/flowcoll/flowcoll.log):
2022-10-21T08:31:23.078-0700	info	pipeline/appserver.go:44	metrics exposed at

Grafana Installation Guide

Prometheus Installation Guide

Prometheus Configuration

  1. Once Prometheus is installed edit prometheus.yml and add a job pointing to the ElastiFlow Unified Flow Collector as in the following example:

Example default Prometheus configuration:

# my global config
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).

# Alertmanager configuration
- static_configs:
- targets:
# - alertmanager:9093

# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
# - "first_rules.yml"
# - "second_rules.yml"

# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "prometheus"

# metrics_path defaults to '/metrics'
# scheme defaults to 'http'.

- targets: ["localhost:9090"]

An ElastiFlow-specific Job:

    job_name: elastiflow-metrics-1
scrape_interval: 15s
metrics_path: /metrics

scheme: http
- targets: ['']

Connect Grafana To Prometheus

  1. Once Grafana is up and running; from the "Welcome To Grafana" page click the cogwheel in the bottom left corner, then click "Data Sources", and finally click "Add Data Source": image
  2. Select Prometheus Image
  3. Name this Prometheus Datasource, type your Prometheus endpoint IP address and port in the "URL" field, and configure the authentication and "scrape interval" you have set up: Iamge Click "Save & Test" Image

Import The ElastiFlow Metrics Dashboard

The ElastiFlow Metrics Dashboard can be found by searching Grafana Labs Dashboards:

Direct Link:

Image Image

  1. Import the Dashboard by entering the dashboard ID (17306) found after searching ElastiFlow Metrics in the Grafana Labs Dashboards search by going to Dashboards -> Import and clicking "Load":

Image Image 2. Accept the default or give the dashboard a name and place it in the folder you'd like it to reside in. After this point to the Prometheus Datasource you previously connected above click "Import" and you are done.