Skip to content

Commit

Permalink
feat: Added an ability to pass collector.supervisord.url via SUPERVIS…
Browse files Browse the repository at this point in the history
…ORD_URL environment variable

Signed-off-by: Proskurin Kirill <[email protected]>
  • Loading branch information
Oloremo committed Jan 27, 2021
1 parent 88ee427 commit 8d14732
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* [ENHANCEMENT] Include TCP OutRsts in netstat metrics
* [ENHANCEMENT] Added XFS inode operations to XFS metrics
* [ENHANCEMENT] Remove CGO dependencies for OpenBSD amd64
* [ENHANCEMENT] Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable
* [BUGFIX] Handle EPERM for syscall in timex collector
* [BUGFIX]

Expand Down
2 changes: 1 addition & 1 deletion collector/supervisord.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
)

var (
supervisordURL = kingpin.Flag("collector.supervisord.url", "XML RPC endpoint.").Default("http://localhost:9001/RPC2").String()
supervisordURL = kingpin.Flag("collector.supervisord.url", "XML RPC endpoint.").Default("http://localhost:9001/RPC2").Envar("SUPERVISORD_URL").String()
xrpc *xmlrpc.Client
)

Expand Down

0 comments on commit 8d14732

Please sign in to comment.