Initial Commit
This commit is contained in:
commit
e223cc9b9b
5 changed files with 120 additions and 0 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
[submodule "telegraf-webhooks-plex"]
|
||||
path = telegraf-webhooks-plex
|
||||
url = https://github.com/russorat/telegraf-webhooks-plex
|
4
plex.conf
Normal file
4
plex.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
[[inputs.external_webhooks]]
|
||||
service_address = "0.0.0.0:1619"
|
||||
[inputs.external_webhooks.plex]
|
||||
path = "/plex"
|
1
telegraf-webhooks-plex
Submodule
1
telegraf-webhooks-plex
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1961b11fd22fb9751e09e56df5a9f75d3e213ca2
|
34
telegraf.bak
Normal file
34
telegraf.bak
Normal file
|
@ -0,0 +1,34 @@
|
|||
[global_tags]
|
||||
user = "unraid"
|
||||
|
||||
[[inputs.disk]]
|
||||
[[inputs.mem]]
|
||||
[[inputs.cpu]]
|
||||
[[inputs.system]]
|
||||
[[inputs.smart]]
|
||||
[[inputs.sensors]]
|
||||
[[inputs.net]]
|
||||
interfaces = ["wg0","bond0"]
|
||||
|
||||
[[inputs.netstat]]
|
||||
[[inputs.docker]]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
|
||||
[[inputs.apcupsd]]
|
||||
|
||||
[[inputs.execd]]
|
||||
command = ["/etc/telegraf/telegraf-webhooks-plex/bin/webhook-plex", "--config", "/etc/telegraf/plex.conf"]
|
||||
signal = "none"
|
||||
restart_delay = "10s"
|
||||
data_format = "influx"
|
||||
|
||||
#[[inputs.internet_speed]]
|
||||
#interval = "30m"
|
||||
#test_mode = "multi"
|
||||
#server_id_include = ["1782", "56639", "57358", "45844", "55684"]
|
||||
|
||||
[[outputs.influxdb_v2]]
|
||||
urls = ["https://influx.mcknight.tech"]
|
||||
token = "ux109jfyk--A5vfLi_piXkIrkm5nZ7-d4Qo0Y6tNU4ekxJ-tqMLzl_3TtjQ9r_wjGKBusiNfl4gWyuQPcXBK4w=="
|
||||
organization = "Home"
|
||||
bucket = "unraid"
|
78
telegraf.conf
Normal file
78
telegraf.conf
Normal file
|
@ -0,0 +1,78 @@
|
|||
#[agent]
|
||||
# debug=true
|
||||
[global_tags]
|
||||
user = "unraid"
|
||||
[[inputs.disk]]
|
||||
[inputs.disk.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.mem]]
|
||||
[inputs.mem.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.cpu]]
|
||||
[inputs.cpu.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.system]]
|
||||
[inputs.system.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.smart]]
|
||||
[inputs.smart.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.sensors]]
|
||||
[inputs.sensors.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.net]]
|
||||
interfaces = ["wg0","bond0"]
|
||||
[inputs.net.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.netstat]]
|
||||
[inputs.netstat.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.docker]]
|
||||
endpoint = "unix:///var/run/docker.sock"
|
||||
[inputs.docker.tags]
|
||||
bucket = "unraid"
|
||||
[[inputs.apcupsd]]
|
||||
[inputs.apcupsd.tags]
|
||||
bucket = "unraid"
|
||||
#[[inputs.execd]]
|
||||
#command = ["/etc/telegraf/telegraf-webhooks-plex/bin/webhook-plex", "--config", "/etc/telegraf/plex.conf"]
|
||||
#signal = "none"
|
||||
#restart_delay = "10s"
|
||||
#data_format = "influx"
|
||||
|
||||
#[[inputs.internet_speed]]
|
||||
#interval = "30m"
|
||||
#test_mode = "multi"
|
||||
#server_id_include = ["1782", "56639", "57358", "45844", "55684"]
|
||||
|
||||
[[inputs.socket_listener]]
|
||||
#hostname = "mcknight-TrueNAS"
|
||||
service_address = "tcp://:2003"
|
||||
data_format = "graphite"
|
||||
separator = "."
|
||||
templates = [
|
||||
"truenas.* .host.measurement.field"
|
||||
# "prefix.hostname.chart.dimension"
|
||||
]
|
||||
[inputs.socket_listener.tags]
|
||||
bucket = "truenas"
|
||||
|
||||
[[outputs.influxdb_v2]]
|
||||
urls = ["https://influx.mcknight.tech"]
|
||||
token = "W6sd-Hffr_9rhgTN8VVE9S71TVm6ClCkac13bGOIQVTR1bQkG-ZJStVZKYenowUuGSL6WpGnmiv9zj3K0ueIcA=="
|
||||
#token = "ux109jfyk--A5vfLi_piXkIrkm5nZ7-d4Qo0Y6tNU4ekxJ-tqMLzl_3TtjQ9r_wjGKBusiNfl4gWyuQPcXBK4w=="
|
||||
organization = "Home"
|
||||
bucket_tag = "bucket"
|
||||
|
||||
#bucket = "unraid"
|
||||
#tagexclude = ["truenas"]
|
||||
# [outputs.influxdb_v2.tagpass]
|
||||
# tag1 = ["unraid"]
|
||||
#[[outputs.influxdb_v2]]
|
||||
#urls = ["https://influx.mcknight.tech"]
|
||||
#token = "R85p02R495Vmwzhb3fUO0cLfQ3mWQk-Rma6Hkpz1isvr3WZXhat9Zt6mIza6836n_00hJ7f-lobxAgPHLMt0PQ=="
|
||||
#organization = "Home"
|
||||
#bucket = "truenas"
|
||||
#tagexclude = ["unraid"]
|
||||
# [outputs.influxdb_v2.tagpass]
|
||||
# tag1 = ["truenas"]
|
Loading…
Reference in a new issue