emqx/apps/emqx_prometheus
Zaiming Shi 5bb0cccb53 refactor(build): Clean up app version management
Starting from 5.0.0, all apps in apps dir should follow semver
strictly. Do not use the umbrella project's release tags.

The universal tags made sense when we have applications scattered
in different repos. Now since this is an umbrella project, it is
enough to have a single package level version number corelated with
git tag.
2020-12-01 23:22:33 +01:00
..
grafana_template Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
include Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
priv Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
src refactor(build): Clean up app version management 2020-12-01 23:22:33 +01:00
test Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
README.md Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
rebar.config Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00
TODO Migrate plugins from tag 4.2.2 2020-10-31 12:10:19 +08:00

emqx-prometheus

EMQ X Prometheus Agent

push emqx stats/metrics to prometheus PushGateway

prometheus.push.gateway.server = http://127.0.0.1:9091

prometheus.interval = 15000

pull emqx stats/metrics

Method: GET
Path: api/v4/emqx_prometheus?type=prometheus
params: type: [prometheus| json]

prometheus data

# TYPE erlang_vm_ets_limit gauge
erlang_vm_ets_limit 256000
# TYPE erlang_vm_logical_processors gauge
erlang_vm_logical_processors 4
# TYPE erlang_vm_logical_processors_available gauge
erlang_vm_logical_processors_available NaN
# TYPE erlang_vm_logical_processors_online gauge
erlang_vm_logical_processors_online 4
# TYPE erlang_vm_port_count gauge
erlang_vm_port_count 17
# TYPE erlang_vm_port_limit gauge
erlang_vm_port_limit 1048576


json data

{
  "stats": {key:value},
  "metrics": {key:value},
  "packets": {key:value},
  "messages": {key:value},
  "delivery": {key:value},
  "client": {key:value},
  "session": {key:value}
}

License

Apache License Version 2.0

Author

EMQ X Team.