Prometheus exporter for Cisco Meraki Dashboard API metrics
Project description
Meraki Dashboard Exporter
A Prometheus exporter for Cisco Meraki Dashboard API metrics with OpenTelemetry support.
Features
- Collects metrics from all Meraki device types (MS, MR, MV, MT, MX, MG)
- Organization-level metrics (API usage, licenses, device counts)
- Device-specific metrics (status, performance, sensor readings)
- Async collection for improved performance
- OpenTelemetry support for metrics and logs
- Structured logging with JSON output
- Docker support with health checks
- Configurable collection intervals
Quick Start
Using Docker
-
Copy
.env.exampleto.envand add your Meraki API key:cp .env.example .env # Edit .env and add your MERAKI_API_KEY
-
Run with Docker Compose:
docker-compose up -d
-
Access metrics at http://localhost:9099/metrics
Using Python
-
Install dependencies:
uv pip install -e .
-
Set environment variables:
export MERAKI_API_KEY=your_api_key_here
-
Run the exporter:
python -m meraki_dashboard_exporter
Configuration
All configuration is done via environment variables. See .env.example for all available options.
Key Settings
Required
MERAKI_API_KEY: Your Meraki Dashboard API key
Optional
MERAKI_EXPORTER_ORG_ID: Specific org ID to monitor (monitors all orgs if not set)MERAKI_EXPORTER_LOG_LEVEL: Logging level (default: INFO)MERAKI_EXPORTER_API_BASE_URL: API base URL for regional endpoints (default: https://api.meraki.com/api/v1)MERAKI_EXPORTER_API_TIMEOUT: API request timeout in seconds (default: 30)MERAKI_EXPORTER_API_MAX_RETRIES: Maximum API request retries (default: 4)
Update Intervals
MERAKI_EXPORTER_FAST_UPDATE_INTERVAL: Fast tier interval in seconds (default: 60, range: 30-300)MERAKI_EXPORTER_MEDIUM_UPDATE_INTERVAL: Medium tier interval in seconds (default: 300, range: 300-1800)MERAKI_EXPORTER_SLOW_UPDATE_INTERVAL: Slow tier interval in seconds (default: 900, range: 600-3600)
Regional API Endpoints
For users in specific regions, use the appropriate API base URL:
- Global/Default:
https://api.meraki.com/api/v1 - Canada:
https://api.meraki.ca/api/v1 - China:
https://api.meraki.cn/api/v1 - India:
https://api.meraki.in/api/v1 - US Federal:
https://api.gov-meraki.com/api/v1
Example:
export MERAKI_EXPORTER_API_BASE_URL="https://api.meraki.ca/api/v1" # For Canada region
Metrics
Organization Metrics
meraki_org_api_requests_total: Total API requestsmeraki_org_networks_total: Number of networksmeraki_org_devices_total: Number of devices by typemeraki_org_licenses_total: License counts by type and statusmeraki_org_clients_total: Total active clients (5-minute window)meraki_org_usage_total_kb: Total data usage in KB (5-minute window)meraki_org_usage_downstream_kb: Downstream data usage in KB (5-minute window)meraki_org_usage_upstream_kb: Upstream data usage in KB (5-minute window)
Device Metrics
meraki_device_up: Device online statusmeraki_device_uptime_seconds: Device uptime
Switch (MS) Metrics
meraki_ms_port_status: Port connection statusmeraki_ms_port_traffic_bytes: Port traffic countersmeraki_ms_port_errors_total: Port error counters
Access Point (MR) Metrics
meraki_mr_clients_connected: Connected client countmeraki_ap_channel_utilization_*: Channel utilization metricsmeraki_network_bluetooth_clients_total: Bluetooth clients detected by MR devices
Sensor (MT) Metrics
meraki_mt_temperature_celsius: Temperature readingsmeraki_mt_humidity_percent: Humidity readingsmeraki_mt_door_status: Door sensor statusmeraki_mt_water_detected: Water detection status- And more...
Alert Metrics
meraki_alerts_active: Number of active alerts by type, category, severity, and device typemeraki_alerts_total_by_severity: Total alerts grouped by severity levelmeraki_alerts_total_by_network: Total alerts per network
Configuration Metrics
meraki_org_login_security_*: Various login security settings (see config collector for full list)meraki_org_configuration_changes_total: Total configuration changes in the last 24 hours
Development
Running Tests
uv run pytest
Linting and Type Checking
uv run ruff check .
uv run mypy .
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meraki_dashboard_exporter-0.6.1.tar.gz.
File metadata
- Download URL: meraki_dashboard_exporter-0.6.1.tar.gz
- Upload date:
- Size: 264.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36b6c51486bad3e08e4e2eb26cc71f6cc502d327758c8cb6dcf302a8a646209
|
|
| MD5 |
c2d90efa818b1f068066b8e0f49a13e4
|
|
| BLAKE2b-256 |
840857601d9ddb430683a2c42b989b1b7cfb0724d4d56a8ac6f05219c2098160
|
Provenance
The following attestation bundles were made for meraki_dashboard_exporter-0.6.1.tar.gz:
Publisher:
python-publish.yml on rknightion/meraki-dashboard-exporter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meraki_dashboard_exporter-0.6.1.tar.gz -
Subject digest:
c36b6c51486bad3e08e4e2eb26cc71f6cc502d327758c8cb6dcf302a8a646209 - Sigstore transparency entry: 288633360
- Sigstore integration time:
-
Permalink:
rknightion/meraki-dashboard-exporter@564225478f14e0fb5363312e80cdf1d54ccf7716 -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/rknightion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@564225478f14e0fb5363312e80cdf1d54ccf7716 -
Trigger Event:
release
-
Statement type:
File details
Details for the file meraki_dashboard_exporter-0.6.1-py3-none-any.whl.
File metadata
- Download URL: meraki_dashboard_exporter-0.6.1-py3-none-any.whl
- Upload date:
- Size: 127.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02fb76365b0d09081052df2ef9daf14d0a0eb1ec0b161af06c1631b913ea395e
|
|
| MD5 |
c82f0d314cf8ee4e9ce44d3b26a35db7
|
|
| BLAKE2b-256 |
2c97f4d4f6125268ddcb55ef096b540e9f46661313fa53866fc78ad303189e02
|
Provenance
The following attestation bundles were made for meraki_dashboard_exporter-0.6.1-py3-none-any.whl:
Publisher:
python-publish.yml on rknightion/meraki-dashboard-exporter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meraki_dashboard_exporter-0.6.1-py3-none-any.whl -
Subject digest:
02fb76365b0d09081052df2ef9daf14d0a0eb1ec0b161af06c1631b913ea395e - Sigstore transparency entry: 288633431
- Sigstore integration time:
-
Permalink:
rknightion/meraki-dashboard-exporter@564225478f14e0fb5363312e80cdf1d54ccf7716 -
Branch / Tag:
refs/tags/v0.6.1 - Owner: https://github.com/rknightion
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@564225478f14e0fb5363312e80cdf1d54ccf7716 -
Trigger Event:
release
-
Statement type: