Skip to content

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