diff options
author | rinpatch <rinpatch@sdf.org> | 2019-10-02 23:28:45 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-10-02 23:28:45 +0300 |
commit | acc62f327d45c0a9a0414da56bc339ec3e22cb63 (patch) | |
tree | 6ac0fbfc1c489e7e1823562f1717b29bf875d593 /docs/API/prometheus.md | |
parent | c5e937b156ea1f8f96ade7d9104fc2c5fd1dd9cd (diff) | |
download | pleroma-acc62f327d45c0a9a0414da56bc339ec3e22cb63.tar.gz |
Rename some directories because MkDocs uses them for categories
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'] +``` |