Skip to content

Commit

Permalink
Append underscore to envPrefix
Browse files Browse the repository at this point in the history
Fixes parsing env vars

Before, it wasn't actually reading env vars like MAXSCALE_EXPORTER_ADDRESS as described in the documentation but env vars like MAXSCALE_EXPORTERADDRESS instead. This fixes that.
  • Loading branch information
TheLastProject authored Dec 27, 2019
1 parent 4d89ad6 commit 23a43fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maxscale_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

const (
envPrefix = "MAXSCALE_EXPORTER"
envPrefix = "MAXSCALE_EXPORTER_"
metricsPath = "/metrics"
namespace = "maxscale"
)
Expand Down

0 comments on commit 23a43fa

Please sign in to comment.