observability_generate_monitoring_compose
Generate a Docker Compose snippet for a Prometheus and Grafana monitoring stack that scrapes OpenSIPS metrics. Configure deployment name, ports, Grafana admin password, and external Docker network for side-car deployment.
Instructions
Generate a docker-compose snippet for a Prometheus + Grafana side-car.
The stack assumes the OpenSIPS service is on the same external Docker
network so Prometheus can scrape opensips:8888/prometheus.
Parameters
deployment_name:
Used in container names so multiple deployments coexist.
grafana_port, prometheus_port:
External ports to publish.
grafana_admin_password:
Set the Grafana admin password (default admin).
network:
External Docker network name. Create with
docker network create <name> before starting the stack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment_name | No | opensips | |
| grafana_port | No | ||
| prometheus_port | No | ||
| grafana_admin_password | No | admin | |
| network | No | opensips-net |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||