mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 16:21:34 +01:00
alloy: Fix job labels
This commit is contained in:
parent
3d0d4ea31d
commit
ecb75962c0
1 changed files with 2 additions and 0 deletions
|
|
@ -114,6 +114,7 @@ in
|
||||||
prometheus.scrape "victorialogs" {
|
prometheus.scrape "victorialogs" {
|
||||||
targets = [{
|
targets = [{
|
||||||
__address__ = "localhost:${builtins.toString config.custom.services.victorialogs.port}",
|
__address__ = "localhost:${builtins.toString config.custom.services.victorialogs.port}",
|
||||||
|
job = "victorialogs",
|
||||||
instance = constants.hostname,
|
instance = constants.hostname,
|
||||||
}]
|
}]
|
||||||
forward_to = [prometheus.remote_write.default.receiver]
|
forward_to = [prometheus.remote_write.default.receiver]
|
||||||
|
|
@ -127,6 +128,7 @@ in
|
||||||
prometheus.scrape "caddy" {
|
prometheus.scrape "caddy" {
|
||||||
targets = [{
|
targets = [{
|
||||||
__address__ = "localhost:${builtins.toString config.custom.services.caddy.metrics.port}",
|
__address__ = "localhost:${builtins.toString config.custom.services.caddy.metrics.port}",
|
||||||
|
job = "caddy",
|
||||||
instance = constants.hostname,
|
instance = constants.hostname,
|
||||||
}]
|
}]
|
||||||
forward_to = [prometheus.remote_write.default.receiver]
|
forward_to = [prometheus.remote_write.default.receiver]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue