Prometheus metrics¶
LiberaForms comes with a prometheus endpoint.
Endpoint metrics:
- Total Forms
- Total Users
- Total Answers
- Total Attachment size
- Total Media size
.env
¶
To enable the endpoint.
ENABLE_PROMETHEUS_METRICS=True
Web server config¶
location /metrics {
return 404;
}
Modify your configuration to allow your prometheus server access to /metrics
.
Prometheus data base¶
The default database does not retain data long term.
We use victoriaDB to keep years of data.
It is not necessary to poll the LiberaForms server often. Maybe every 30 minutes or more is enough for you.