prometheus_push
Copyright (c) 2017 Ilya Khaprov <i.khaprov@gmail.com>.
Version: 0.0.1
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"}]})
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 |