prometheus_push

Prometheus Pushgateway client


Keywords
elixir, erlang, instrumentation, monitoring, prometheus
License
MIT

Documentation

Prometheus.io Pushgateway client.

Copyright (c) 2017 Ilya Khaprov <i.khaprov@gmail.com>.

Version: 0.0.1

Hex.pm Hex.pm Downloads Build Status Coverage Status

  • IRC: #erlang on Freenode;
  • Slack: #prometheus channel - Browser or App(slack://elixir-lang.slack.com/messages/prometheus).

Example

Erlang

prometheus_counter:new([{name, qwe},
                        {labels, []},
                        {help, "qwe qwe"}]).
prometheus_counter:inc(qwe).

prometheus_counter:new([{name, foo},
                        {labels, []},
                        {help, "foo foo"}]).
prometheus_counter:inc(foo, 10).

prometheus_push:push(#{job => "qwe",
                       grouping_key => [{"abra", "kadabra"}]}).

Elixir

use Prometheus.Metric

Counter.new([name: :qwe,
             labels: [],
             help: "qwe qwe"])
Counter.inc(:qwe)

Counter.new([name: :foo,
             labels: [],
             help: "foo foo"])
Counter.inc(:foo, 10)

Prometheus.Push.push(%{job: "qwe",
                       grouping_key: [{"abra", "kadabra"}]})

Integrations

Dashboards

Blogs

Contributing

Section order:

  • Types
  • Macros
  • Callbacks
  • Public API
  • Deprecations
  • Private Parts

Install the git pre-commit hook:

./bin/pre-commit.sh install

The pre-commit check can be skipped by passing --no-verify to git commit.

License

MIT

Modules

prometheus_push