emqx/apps/emqx_prometheus
Zaiming Shi 0cf8380822 chore(apps): Sync plugins to apps dir
emqx_telemetry from tag v4.2.7
all other apps are from e4.2.4
see sync-apps.sh
2021-02-06 11:42:40 +01:00
..
.github/workflows chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
etc chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
grafana_template chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
include chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
priv chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
src chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
test chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
.gitignore chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
LICENSE chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
Makefile chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
README.md chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
TODO chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
rebar.config chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00
rebar.config.script chore(apps): Sync plugins to apps dir 2021-02-06 11:42:40 +01:00

README.md

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.