Prometheus.io Pushgateway client.
Copyright (c) 2017 Ilya Khaprov <i.khaprov@gmail.com>.
Version: 0.0.1
- 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
- Ecto Instrumenter
- Erlang client
- Elixir client
- Elixir plugs Instrumenters and Exporter
- Extatus - App to report metrics to Prometheus from Elixir GenServers
- Fuse plugin
- Inets HTTPD Exporter
- OS process info Collector (linux-only)
- Phoenix Instrumenter
- RabbitMQ Exporter.
Dashboards
Blogs
- Monitoring Elixir apps in 2016: Prometheus and Grafana
- A Simple Erlang Application, with Prometheus.
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 |