diff options
author | lambda <lain@soykaf.club> | 2019-04-08 09:18:01 +0000 |
---|---|---|
committer | lambda <lain@soykaf.club> | 2019-04-08 09:18:01 +0000 |
commit | b4da2bc1d009ecca0d7821abe3577d1a920c41c0 (patch) | |
tree | c75ce1ec6e70724c29efe540a2439de635abc160 /docs/api/prometheus.md | |
parent | cfa6e7289f5cfdb1fce17eb89bc0513ff624480d (diff) | |
parent | b177e1e7f330ff1531be190949db7f75e378a449 (diff) | |
download | pleroma-b4da2bc1d009ecca0d7821abe3577d1a920c41c0.tar.gz |
Merge branch 'develop' into 'improve_upgrade_user_from_ap_id'
# Conflicts:
# config/config.exs
# docs/config.md
Diffstat (limited to 'docs/api/prometheus.md')
-rw-r--r-- | docs/api/prometheus.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/api/prometheus.md b/docs/api/prometheus.md new file mode 100644 index 000000000..19c564e3c --- /dev/null +++ b/docs/api/prometheus.md @@ -0,0 +1,22 @@ +# Prometheus Metrics + +Pleroma includes support for exporting metrics via the [prometheus_ex](https://github.com/deadtrickster/prometheus.ex) library. + +## `/api/pleroma/app_metrics` +### Exports Prometheus application metrics +* Method: `GET` +* Authentication: not required +* Params: none +* Response: JSON + +## Grafana +### Config example +The following is a config example to use with [Grafana](https://grafana.com) + +``` + - job_name: 'beam' + metrics_path: /api/pleroma/app_metrics + scheme: https + static_configs: + - targets: ['pleroma.soykaf.com'] +``` |