forked from jvanderaa/NetStats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
telegraf.conf
30 lines (23 loc) · 1.14 KB
/
telegraf.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
###############################################################################
# INPUT PLUGINS #
###############################################################################
# Exec a speedtest every 5 minutes
# Required: speedtest-cli (pip install speedtest-cli) - https://github.com/sivel/speedtest-cli
[[inputs.exec]]
interval = "300s"
# Shell/commands array
# Full command line to executable with parameters, or a glob pattern to run all matching files.
commands = ["speedtest-cli --json"]
## Timeout for each command to complete.
timeout = "60s"
# Data format to consume.
# NOTE json only reads numerical measurements, strings and booleans are ignored.
data_format = "json"
# measurement name suffix (for separating different commands)
name_suffix = "_speedtest"
###############################################################################
# OUTPUT PLUGINS #
###############################################################################
[[outputs.prometheus_client]]
listen = ":9273"
metric_version = 2