Project

General

Profile

Feature #8216

Add prometheus output for telegraf

Added by Nicolas Marot over 3 years ago. Updated 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Telegraf
Target version:
-
Start date:
12/16/2017
Due date:
% Done:

0%

Estimated time:

Description

Please consider adding prometheus output as output choice for telegraf

History

#1 Updated by Nicolas Marot over 3 years ago

it is no more than listening on port 9126 on lan interface, but while disabling any other outputs client.

#2 Updated by Jim Pingle over 1 year ago

  • Category set to Telegraf

#3 Updated by Bernd Klaus 7 months ago

this would be really nice cause it obsoletes running a InfluxDB server just to get the metrics viewable in Grafana.

its this plugin: Prometheus Output Plugin

apparently builds along with current telegraf

#4 Updated by Bernd Klaus 7 months ago

wait, its already there and works!

no need to do anything, except perhaps adding some hint to the Web UI at Services -> Telegraf

all that needs to be done is:

  1. go to Services -> Telegraf
  2. check Enable Telegraf
  3. paste into Additional configuration for Telegraf field at the very bottom:
    [[outputs.prometheus_client]]
      listen = ":9100" 
    
  4. ensure the service started at Status -> Services
  5. verify metrics at http://PFSENSE.HOST:9100/metrics

tested with the telegraf 1.13.4_1 package that get installed currently

Also available in: Atom PDF