This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

DNAC Prometheus Exporter

This repository is reference source code for a Prometheus Data Exporter for DNAC.

Pre-requisites

  1. Node version v8.11.2 or beyond recommended. (Tested with node v 8.11.2)
  2. Docker 18.09.2 or beyond recommended. (Tested with docker 18.0.9.2). docker-compose should be available.
  3. 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

  1. https://github.com/stefanprodan/dockprom
  2. https://prometheus.io/
  3. 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.

View code on GitHub

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.