Getting Started With Docker
The following prerequisites are required to get up and running with this tool:
- Prometheus server’s rules directory and configuration file (prometheus.yml) must be shared and accessible
- Prometheus lifecycle API must be enabled to allow requesting the /reload API
Getting started with Docker Compose#
First, clone the project, and then start up the services with Docker Compose.
After successfully starting up services, the Parosly server will be ready to accept requests.
Crating example alerting rule via API#
POST /api/v1/rules
Request
Response
Where the 453ee16d-6310-42e0-8d57-2857e27d250f.yml
is the randomly generated filename created by the Parosly server.
Deleting alerting rule file via API#
DELETE /api/v1/rules/{file}
Note that the filename in your example is different from the example below.
Request
Response
You can find the complete API documentation here. Enjoy!
Further reading#