Skip to content

Commit

Permalink
fix up a windows test after trying in windows locally
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbaranowski committed Dec 13, 2023
1 parent d52061a commit 7d8c3ee
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ prometheus.remote_write "metrics_default" {
}
}

discovery.relabel "integrations_windows_exporter" {
prometheus.exporter.windows "integrations_windows_exporter" { }

discovery.relabel "integrations_windows" {
targets = prometheus.exporter.windows.integrations_windows_exporter.targets

rule {
target_label = "job"
replacement = "integrations/windows_exporter"
replacement = "integrations/windows"
}
}

prometheus.exporter.windows "integrations_windows_exporter" { }

prometheus.scrape "integrations_windows" {
targets = discovery.relabel.integrations_windows_exporter.targets
targets = discovery.relabel.integrations_windows.output
forward_to = [prometheus.remote_write.metrics_default.receiver]
job_name = "integrations/windows"
}

0 comments on commit 7d8c3ee

Please sign in to comment.