mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-14 10:48:56 +02:00
Revert alloy config.
This commit is contained in:
parent
89edfefaf3
commit
9f8af49a17
1 changed files with 13 additions and 9 deletions
|
|
@ -199,16 +199,20 @@ in {
|
||||||
# See: https://github.com/grafana/alloy/blob/bbe11b0f6a3bd3391108b2d27122c654c535dd8d/docs/sources/set-up/migrate/from-promtail.md
|
# See: https://github.com/grafana/alloy/blob/bbe11b0f6a3bd3391108b2d27122c654c535dd8d/docs/sources/set-up/migrate/from-promtail.md
|
||||||
environment.etc."alloy/config.alloy" = {
|
environment.etc."alloy/config.alloy" = {
|
||||||
text = ''
|
text = ''
|
||||||
prometheus.scrape integrations_traefik {
|
discovery.relabel "metrics_integrations_integrations_traefik" {
|
||||||
targets = [{ __address__ = "localhost:8080" }]
|
targets = [{
|
||||||
job_name = "integrations/traefik"
|
__address__ = "localhost:8080",
|
||||||
|
}]
|
||||||
|
|
||||||
relabel set_instance_label {
|
|
||||||
rule {
|
rule {
|
||||||
target_label = "instance"
|
target_label = "instance"
|
||||||
replacement = constants.hostname
|
replacement = constants.hostname
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prometheus.scrape "metrics_integrations_integrations_traefik" {
|
||||||
|
targets = discovery.relabel.metrics_integrations_integrations_traefik.output
|
||||||
|
job_name = "integrations/traefik"
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
group = "root";
|
group = "root";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue