DNAC Prometheus Exporter
This repository is reference source code for a Prometheus Data Exporter for DNAC.
Pre-requisites
- Node version v8.11.2 or beyond recommended. (Tested with node v 8.11.2)
- Docker 18.09.2 or beyond recommended. (Tested with docker 18.0.9.2). docker-compose should be available.
- Bash shell for helper scripts
Configuration & Run
./init.sh
All parameters are mandatory
Example
./init.sh 1.2.3.1 1.2.3.4 admin admin_password
Usage
Browse http://localhost:9000/metrics whether metrics are seen
Browse http://localhost:9090 and check whether metrics with dnac_ are exported.
If the metrics are present, execute queries and examine results and graphs.
Troubleshoot
Console logs should indicate if there are issues in starting up docker or node.
For checking prometheus and scraper connectivity check browser http://localhost:9090 -> Status -> Targets.
Licensing info
BSD 3 license
Credits and references
- https://github.com/stefanprodan/dockprom
- https://prometheus.io/
- https://www.cisco.com/c/en/us/products/cloud-systems-management/dna-center/index.html
Use Case
Customers using Prometheus monitoring or other external monitoring solutions may need Cisco DNA Center metrics included in their monitoring. This code is an exporter tool that that acts as a broker, translating Cisco DNA Center metrics and feeding them to the monitoring tool. This code can be extended to other systems besides Cisco DNA Center.