Created
January 23, 2017 14:55
-
-
Save spiffin/80509b3ef45b48141eabca2f26cf1624 to your computer and use it in GitHub Desktop.
Telegraf config for collecting Roon Core metrics
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global tags can be specified here in key="value" format. | |
[global_tags] | |
# dc = "us-east-1" # will tag all metrics with dc=us-east-1 | |
# rack = "1a" | |
## Environment variables can be used as tags, and throughout the config file | |
# user = "$USER" | |
# Configuration for telegraf agent | |
[agent] | |
interval = "10s" | |
round_interval = true | |
metric_batch_size = 1000 | |
metric_buffer_limit = 10000 | |
collection_jitter = "0s" | |
flush_interval = "10s" | |
flush_jitter = "0s" | |
precision = "" | |
## Logging configuration: | |
debug = false | |
quiet = false | |
logfile = "/var/log/telegraf/telegraf.log" | |
hostname = "" | |
omit_hostname = false | |
############################################################################### | |
# OUTPUT PLUGINS # | |
############################################################################### | |
# Configuration for influxdb server to send metrics to | |
[[outputs.influxdb]] | |
## | |
# Change 0.0.0.0 to IP of machine running InfluxDB | |
## | |
urls = ["http://0.0.0.0:8086"] | |
database = "telegraf_roon" # required | |
retention_policy = "" | |
write_consistency = "any" | |
timeout = "5s" | |
user_agent = "telegraf_roon" | |
############################################################################### | |
# INPUT PLUGINS # | |
############################################################################### | |
# Read metrics about cpu usage | |
[[inputs.cpu]] | |
## Whether to report per-cpu stats or not | |
percpu = true | |
## Whether to report total system cpu stats or not | |
totalcpu = true | |
## If true, collect raw CPU time metrics. | |
collect_cpu_time = false | |
# Read metrics about disk usage by mount point | |
[[inputs.disk]] | |
ignore_fs = ["tmpfs", "devtmpfs"] | |
# Read metrics about disk IO by device | |
[[inputs.diskio]] | |
# Get kernel statistics from /proc/stat | |
[[inputs.kernel]] | |
# Read metrics about memory usage | |
[[inputs.mem]] | |
# Get the number of processes and group them by status | |
[[inputs.processes]] | |
# Read metrics about swap memory usage | |
[[inputs.swap]] | |
# Read metrics about system load & uptime | |
[[inputs.system]] | |
# # Read metrics about network interface usage | |
[[inputs.net]] | |
# # Read TCP metrics such as established, time wait and sockets counts. | |
[[inputs.netstat]] | |
# # Monitor process cpu and memory usage | |
# [[inputs.procstat]] | |
# ## Must specify one of: pid_file, exe, or pattern | |
# ## PID file to monitor process | |
# pid_file = "/var/run/nginx.pid" | |
# ## executable name (ie, pgrep <exe>) | |
# # exe = "nginx" | |
# ## pattern as argument for pgrep (ie, pgrep -f <pattern>) | |
# # pattern = "nginx" | |
# ## user as argument for pgrep (ie, pgrep -u <user>) | |
# # user = "nginx" | |
# | |
# ## override for process_name | |
# ## This is optional; default is sourced from /proc/<pid>/status | |
# # process_name = "bar" | |
# ## Field name prefix | |
# prefix = "" | |
# ## comment this out if you want raw cpu_time stats | |
# fielddrop = ["cpu_time_*"] | |
[[inputs.procstat]] | |
pattern = "/opt/RoonServer/Mono/bin/RoonAppliance" | |
prefix = "RoonAppliance_procstat" | |
fielddrop = ["cpu_time_*"] | |
[[inputs.procstat]] | |
pattern = "/opt/RoonServer/Mono/bin/RAATServer" | |
prefix = "RAATServer_procstat" | |
fielddrop = ["cpu_time_*"] | |
[[inputs.procstat]] | |
pattern = "/opt/RoonServer/Mono/bin/RoonServer" | |
prefix = "RoonServer_procstat" | |
fielddrop = ["cpu_time_*"] | |
[[inputs.procstat]] | |
pattern = "smbd" | |
prefix = "smbd_procstat" | |
fielddrop = ["cpu_time_*"] | |
# Uncomment to collect metrics on telegraf's CPU & memory usage | |
#[[inputs.procstat]] | |
# pattern = "telegraf" | |
# prefix = "telegraf_procstat" | |
# fielddrop = ["cpu_time_*"] | |
# Monitor sensors, requires lm-sensors package | |
[[inputs.sensors]] | |
## Remove numbers from field names. | |
## If true, a field name like 'temp1_input' will be changed to 'temp_input'. | |
# remove_numbers = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment