Skip to content

Comments

Allow configuring Statsd host and port from env vars#155

Open
zorbash wants to merge 1 commit intoFeuerlabs:masterfrom
zorbash:statsd-env-config
Open

Allow configuring Statsd host and port from env vars#155
zorbash wants to merge 1 commit intoFeuerlabs:masterfrom
zorbash:statsd-env-config

Conversation

@zorbash
Copy link

@zorbash zorbash commented Jul 10, 2017

This PR changes exometer_report_statsd to be configurable from environmental variables.

It can be configured as follows (Elixir code):

config :exometer,
  report: [
    reporters: [
      {:exometer_report_statsd, [hostname: {:system, "STATSD_HOST"}, port: {:system, "STATSD_PORT"}]}
    ]
  ]

The goal is to build the release artefact using a tool like Distillery just once for multiple environments (staging / production) and supply all the required configuration via env vars.

If this behaviour is decided to be merged, I can also work on the other reporters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant