mirror of
https://github.com/bashclub/zamba-lxc-toolbox
synced 2025-08-14 09:42:26 +00:00
fix influxdb writer
This commit is contained in:
parent
3a6711c850
commit
161ffb7a2d
@ -86,11 +86,28 @@ object ApiUser "director" {
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > /etc/icinga2/features-available/influxdb2-writer.conf <<EOF
|
cat > /etc/icinga2/features-available/influxdb2-writer.conf <<EOF
|
||||||
object Influxdb2Writer "influxdb2-writer" {
|
host = "127.0.0.1"
|
||||||
host = "http://127.0.0.1:8086"
|
port = 8086
|
||||||
organization = "icinga"
|
organization = "icinga"
|
||||||
bucket = "icinga"
|
bucket = "icinga"
|
||||||
auth_token = "${INFLUX_ICINGA_TOKEN}"
|
auth_token = "${INFLUX_ICINGA_TOKEN}"
|
||||||
|
|
||||||
|
flush_threshold = 1024
|
||||||
|
flush_interval = 10s
|
||||||
|
|
||||||
|
host_template = {
|
||||||
|
measurement = "$host.check_command$"
|
||||||
|
tags = {
|
||||||
|
hostname = "$host.name$"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
service_template = {
|
||||||
|
measurement = "$service.check_command$"
|
||||||
|
tags = {
|
||||||
|
hostname = "$host.name$"
|
||||||
|
service = "$service.name$"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
cat > /etc/icinga2/zones.conf <<EOF
|
cat > /etc/icinga2/zones.conf <<EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user