Skip to content

Commit 8d14732

Browse files
committed
feat: Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable
Signed-off-by: Proskurin Kirill <kirill.proskurin@behavox.com>
1 parent 88ee427 commit 8d14732

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* [ENHANCEMENT] Include TCP OutRsts in netstat metrics
77
* [ENHANCEMENT] Added XFS inode operations to XFS metrics
88
* [ENHANCEMENT] Remove CGO dependencies for OpenBSD amd64
9+
* [ENHANCEMENT] Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable
910
* [BUGFIX] Handle EPERM for syscall in timex collector
1011
* [BUGFIX]
1112

collector/supervisord.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
)
3232

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

0 commit comments

Comments
 (0)