Merge pull request #1947 from Oloremo/supervisord_env_vars

Added an ability to pass collector.supervisord.url via ENV vars
This commit is contained in:
Ben Kochie 2021-02-03 08:35:43 +01:00 committed by GitHub
commit 477a192803
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
* [ENHANCEMENT] Include TCP OutRsts in netstat metrics * [ENHANCEMENT] Include TCP OutRsts in netstat metrics
* [ENHANCEMENT] Added XFS inode operations to XFS metrics * [ENHANCEMENT] Added XFS inode operations to XFS metrics
* [ENHANCEMENT] Remove CGO dependencies for OpenBSD amd64 * [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] Handle EPERM for syscall in timex collector
* [BUGFIX] * [BUGFIX]

View file

@ -31,7 +31,7 @@ import (
) )
var ( 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 xrpc *xmlrpc.Client
) )