emqx/apps/emqx_prometheus
JimMoen fb330f77e6
feat(prometheus): api format_mode parameter support
- node(default):
  The only supported format_mode for PushGateway.
  Return the current node's metrics.
  -  Without label `node_name` with content-type: `text/plain`.
  -  Without key `node_name` with content-type: `application/json`

- nodes_aggregated:
  Return all nodes metrics Arithmetic-Sum or Logical-Sum.
  See details in callback modules.
    - Logical-Sum for metrics named with `xxx_enable` or `xxx_status`.
    - Arithmetic-Sum for other metrics.
  `node_name` field:
    -  Without label `node_name` with content-type: `text/plain`.
    -  Without key `node_name` with content-type: `application/json`

- nodes_unaggregated:
  Return all nodes metrics without aggregated.
  `node_name` field:
    -  _With_ label `node_name` with content-type: `text/plain`.
    -  _With_ key `node_name` with content-type: `application/json`
2024-01-21 00:14:47 +08:00
..
etc feat: generate a minimized emqx.conf 2022-05-31 19:20:27 +08:00
grafana_template chore: update prometheus vsn and grafana template 2023-06-08 14:29:54 +08:00
include feat(prometheus): auth metrics with text/plain 2024-01-21 00:14:32 +08:00
src feat(prometheus): api format_mode parameter support 2024-01-21 00:14:47 +08:00
test test(prometheus): {Registry, Collector} tuple 2024-01-21 00:14:36 +08:00
.gitignore refactor(proj): Add apps 2020-12-04 22:11:53 +01:00
README.md chore: update prometheus README 2023-04-18 22:47:26 +08:00
rebar.config feat(prometheus): auth metrics with text/plain 2024-01-21 00:14:32 +08:00

EMQX Prometheus Agent

This application provides the ability to integrate with Prometheus. It provides an HTTP API for collecting metrics of the current node and also supports configuring a Push Gateway URL address for pushing these metrics.

More introduction about Integrate with Prometheus

See HTTP API docs to learn how to Update Prometheus config and Get all metrics data.

Correspondingly, we have also provided a Grafana template for visualizing these metrics.