observability_generate_prometheus_scrape
Generate a Prometheus scrape configuration for OpenSIPS metrics monitoring. Specify deployment name, host, port, metrics path, scrape interval, and optional multi-instance targets to collect metrics from your OpenSIPS servers.
Instructions
Generate a Prometheus scrape configuration.
Parameters
deployment_name:
Used as the instance label so dashboards can pivot on it.
opensips_host, prom_port:
Default target when targets is omitted.
metrics_path:
Path the prometheus.so module serves on (default /prometheus).
scrape_interval:
Prometheus scrape interval. Default 15s.
targets:
Optional list of [label, "host:port"] pairs for multi-instance
scraping. When omitted, a single target is generated from
opensips_host + prom_port.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| deployment_name | No | opensips | |
| opensips_host | No | opensips | |
| prom_port | No | ||
| metrics_path | No | /prometheus | |
| scrape_interval | No | 15s | |
| targets | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||