Skip to content

Commit

Permalink
Merge pull request #47 from intergral/rabbitmq-env-fix
Browse files Browse the repository at this point in the history
Windows - RabbitMQ uses env variable for address
  • Loading branch information
ibalal-intergral authored Feb 28, 2024
2 parents cef6d5d + 4cb13b9 commit cc6ce48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/observability-agent-autoconf.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ if (((Get-NetTCPConnection).LocalPort -contains 5672 -or $env:rabbitmq_scrape_ta
@"
prometheus.scrape "rabbit" {
targets = [
{"__address__" = "$rabbitmq_scrape_target", "instance" = "$instance_label"},
{"__address__" = "$env:rabbitmq_scrape_target", "instance" = "$instance_label"},
]
forward_to = [prometheus.remote_write.default.receiver]
Expand Down

0 comments on commit cc6ce48

Please sign in to comment.