https://github.com/zeljkobenovic/apgom
Asterisk Prometheus GO Metrics
https://github.com/zeljkobenovic/apgom
asterisk metrics prometheus
Last synced: 2 months ago
JSON representation
Asterisk Prometheus GO Metrics
- Host: GitHub
- URL: https://github.com/zeljkobenovic/apgom
- Owner: ZeljkoBenovic
- Created: 2024-06-13T00:10:48.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2024-12-12T00:06:28.000Z (6 months ago)
- Last Synced: 2025-02-01T12:23:12.983Z (4 months ago)
- Topics: asterisk, metrics, prometheus
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# APGOM (AsteriskPrometheusGOMetrics)
`apgom` is an Asterisk Prometheus scraper that can fetch Asterisk information and expose and endpoint
stable for Prometheus scraper to consume.## Usage
Just run `apgom` as a service on an Asterisk box,
and it will automagically expose Prometheus metrics on `/metrics` endpoint.
It scrapes metrics from the Asterisk AMI API directly, so it needs to be enabled on the Asterisk server.### Configuration flags
* `-host` metrics listen host (default `0.0.0.0`)
* `-port` metrics listen port (default `3000`)
* `-path` metrics listen url path (default `/metrics`)
* `-ami-host` asterisk hostname or ip address (default `localhost`)
* `-ami-user` asterisk AMI username (default `admin`)
* `-ami-pass` asterisk AMI password (required)## Metrics
* `asterisk_calls_total` - the total number of processed calls (Gauge)
* `asterisk_calls_active` - the number of currently active calls (Gauge)
* `asterisk_extensions_total` - the total number of extensions regardless of availability (Gauge)
* `asterisk_extensions_available` - the number of available extensions (Gauge)
* `asterisk_extensions_unavailable` - the number of unavailable extensions (Gauge)
* `asterisk_registries_total` - the total number of registries/trunks regardless of their status (Gauge)
* `asterisk_registries_active` - the number of active registries/trunks (Gauge)
* `asterisk_registries_down` - the number of inactive registries/trunks (Gauge)