mirror of
https://codeberg.org/polyteknisk-radiogruppe/the_prg_server_configuration.git
synced 2026-06-13 18:28:55 +02:00
Refactor Traefik configuration for Prometheus due to some unforseen changes.
This commit is contained in:
parent
4be80d2c42
commit
c42d5234b1
1 changed files with 9 additions and 13 deletions
|
|
@ -199,20 +199,16 @@ in {
|
|||
# See: https://github.com/grafana/alloy/blob/bbe11b0f6a3bd3391108b2d27122c654c535dd8d/docs/sources/set-up/migrate/from-promtail.md
|
||||
environment.etc."alloy/config.alloy" = {
|
||||
text = ''
|
||||
discovery.relabel "metrics_integrations_integrations_traefik" {
|
||||
targets = [{
|
||||
__address__ = "localhost:8080",
|
||||
}]
|
||||
prometheus.scrape "integrations/traefik" {
|
||||
targets = [{ __address__ = "localhost:8080" }]
|
||||
job_name = "integrations/traefik"
|
||||
|
||||
relabel "set_instance_label" {
|
||||
rule {
|
||||
target_label = "instance"
|
||||
replacement = constants.hostname
|
||||
}
|
||||
}
|
||||
|
||||
prometheus.scrape "metrics_integrations_integrations_traefik" {
|
||||
targets = discovery.relabel.metrics_integrations_integrations_traefik.output
|
||||
job_name = "integrations/traefik"
|
||||
}
|
||||
'';
|
||||
group = "root";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue