From 8d147327a662bf6685737264d4deb7206e1914f9 Mon Sep 17 00:00:00 2001 From: Proskurin Kirill Date: Wed, 27 Jan 2021 18:04:52 +0000 Subject: [PATCH] feat: Added an ability to pass collector.supervisord.url via SUPERVISORD_URL environment variable Signed-off-by: Proskurin Kirill --- CHANGELOG.md | 1 + collector/supervisord.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c857ddc8a1..3ed2f6e1f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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] diff --git a/collector/supervisord.go b/collector/supervisord.go index 6a6b90910c..7ece32fb12 100644 --- a/collector/supervisord.go +++ b/collector/supervisord.go @@ -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 )