Skip to content

getkimball/cortex_remote_write

Repository files navigation

cortex_remote_write

Erlang library to forward Prometheus metrics to a Cortex/Prometheus instance

Tested writing to cortex, might also work with Prometheus directly.

Collects metrics from the default registry of Prometheus lib.

Config

Example:

[{cortex_remote_write, [
    {interval, 15000},
    {url, "URL"},
    {username, "USERNAME"},
    {password, "PASSWORD"},
    {default_labels, [
      {"label_name", "label_value"}
    ]}
]}].

interval - in Milliseconds to trigger metric collection/sending.

If url is not specified, the supervisor will not start the writer process.

username and password are required if url is present.

Default Labels

A proplist/ list of key-value pairs.

Value can be: * A string * A binary * {env, Name} - Name being the name of an environment variable to lookup

default_labels defaults to [].

About

Erlang library to forward Prometheus metrics to a Cortex/Prometheus instance

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages