Deploy Promtail to all non-Kubernetes nodes
All the stand-alone FCOS hosts now have Promtail running, forwarding _systemd_ journal messages to Grafana Loki. The Kubernetes nodes will have Promtail deployed as a Kubernetes pod. I would really like to come up with a way to define variables for groups of hosts, so that I do not have to add `promtail: prod.#promtail` to every host's values file individually...master
parent
45c35c065a
commit
ae948489e3
|
@ -4,15 +4,16 @@ import (
|
||||||
"du5t1n.me/cfg/env/prod"
|
"du5t1n.me/cfg/env/prod"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ssh: prod.ssh
|
||||||
|
sudo: prod.sudo
|
||||||
|
|
||||||
|
promtail: prod.#promtail
|
||||||
|
|
||||||
|
collectd: prod.collectd
|
||||||
|
|
||||||
nut: prod.nut
|
nut: prod.nut
|
||||||
|
|
||||||
nut: monitor: prod.#nut_monitor & {
|
nut: monitor: prod.#nut_monitor & {
|
||||||
#server: "localhost"
|
#server: "localhost"
|
||||||
#username: "upsmon"
|
#username: "upsmon"
|
||||||
}
|
}
|
||||||
|
|
||||||
collectd: prod.collectd
|
|
||||||
|
|
||||||
ssh: prod.ssh
|
|
||||||
|
|
||||||
sudo: prod.sudo
|
|
||||||
|
|
|
@ -5,12 +5,13 @@ import (
|
||||||
"du5t1n.me/cfg/app/nut/schema"
|
"du5t1n.me/cfg/app/nut/schema"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
ssh: prod.ssh
|
||||||
|
sudo: prod.sudo
|
||||||
|
|
||||||
|
promtail: prod.#promtail
|
||||||
|
|
||||||
nut: monitor: schema.#NutMonitor
|
nut: monitor: schema.#NutMonitor
|
||||||
|
|
||||||
nut: monitor: prod.#nut_monitor & {
|
nut: monitor: prod.#nut_monitor & {
|
||||||
#username: "nvr1"
|
#username: "nvr1"
|
||||||
}
|
}
|
||||||
|
|
||||||
ssh: prod.ssh
|
|
||||||
|
|
||||||
sudo: prod.sudo
|
|
||||||
|
|
|
@ -6,3 +6,5 @@ import (
|
||||||
|
|
||||||
ssh: prod.ssh
|
ssh: prod.ssh
|
||||||
sudo: prod.sudo
|
sudo: prod.sudo
|
||||||
|
|
||||||
|
promtail: prod.#promtail
|
||||||
|
|
|
@ -5,13 +5,15 @@ import (
|
||||||
|
|
||||||
"du5t1n.me/cfg/app/collectd"
|
"du5t1n.me/cfg/app/collectd"
|
||||||
"du5t1n.me/cfg/app/nut"
|
"du5t1n.me/cfg/app/nut"
|
||||||
|
"du5t1n.me/cfg/app/promtail"
|
||||||
"du5t1n.me/cfg/env/prod"
|
"du5t1n.me/cfg/env/prod"
|
||||||
)
|
)
|
||||||
|
|
||||||
render: list.Concat([
|
render: list.Concat([
|
||||||
|
prod.templates,
|
||||||
collectd.templates,
|
collectd.templates,
|
||||||
|
promtail.templates,
|
||||||
nut.templates,
|
nut.templates,
|
||||||
nut.monitor.templates,
|
nut.monitor.templates,
|
||||||
nut.collectd.templates,
|
nut.collectd.templates,
|
||||||
prod.templates,
|
|
||||||
])
|
])
|
||||||
|
|
|
@ -4,11 +4,13 @@ import (
|
||||||
"list"
|
"list"
|
||||||
|
|
||||||
"du5t1n.me/cfg/app/nut"
|
"du5t1n.me/cfg/app/nut"
|
||||||
|
"du5t1n.me/cfg/app/promtail"
|
||||||
"du5t1n.me/cfg/env/prod"
|
"du5t1n.me/cfg/env/prod"
|
||||||
)
|
)
|
||||||
|
|
||||||
render: list.Concat([
|
render: list.Concat([
|
||||||
|
prod.templates,
|
||||||
|
promtail.templates,
|
||||||
nut.sysusers.templates,
|
nut.sysusers.templates,
|
||||||
nut.monitor.templates,
|
nut.monitor.templates,
|
||||||
prod.templates,
|
|
||||||
])
|
])
|
||||||
|
|
|
@ -4,10 +4,12 @@ import (
|
||||||
"list"
|
"list"
|
||||||
|
|
||||||
"du5t1n.me/cfg/app/collectd"
|
"du5t1n.me/cfg/app/collectd"
|
||||||
|
"du5t1n.me/cfg/app/promtail"
|
||||||
"du5t1n.me/cfg/env/prod"
|
"du5t1n.me/cfg/env/prod"
|
||||||
)
|
)
|
||||||
|
|
||||||
render: list.Concat([
|
render: list.Concat([
|
||||||
collectd.templates,
|
|
||||||
prod.templates,
|
prod.templates,
|
||||||
|
collectd.templates,
|
||||||
|
promtail.templates,
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue