CPS system, application statistics
and Key Performance Indicators (KPI) are collected by the system and are
displayed using a browser-based graphical metrics tool. This chapter provides a
high-level overview of the tools CPS uses to collect and display these
Prometheus is an
application that is used to actively gather statistics and trigger alerts from
the running virtual machines and application services. The CPS vDRA cluster
deploys the following Prometheus services on each control node and on the
– this instance of the Prometheus service is monitoring the system at 5 second
intervals with 24-hour history
Trending – this instance of the Prometheus service is monitoring the system at
20 second intervals with 30-day history
Planning – this instance of the Prometheus service is monitoring the system at
120 second intervals with 365-day history
Prometheus servers scrape statistics from target statistics sources on a
regular basis. The following target data sources are included:
Host Node Exporter
for Host VM statistics.
Mongo DB Exporter
for Database statistics.
In addition to
scrapping, statistics in the Prometheus servers can be configured using the
Management CLI alert rule command to trigger alerts on error conditions. In
this scenario, a user defines the alert rule and the configuration for that
rule is pushed into the Prometheus servers. It can generate SNMPv2 and SNMPv3
alarm based on the NMS destination configured in the system. You can configure
multiple SNMP destination (SNMPv2, SNMPv3) to receive the alarms at multiple
Currently, SNMP get
and walk facility is not supported.
Grafana is a third-party metrics
dashboard and graph editor provided with CPS 7.0 and higher. Grafana provides a
graphical or text-based representation of statistics and counters collected in
the Prometheus database.
If the control VM that hosts Grafana goes down, then the Prometheus data also not available during that downtime after the same control VM (hosting Grafana) is back. This results in some missing data. As a workaround, you can add the Prometheus datasource of other control VM in Grafana UI that was up during that downtime and view the missing statistics.
Manage Grafana Users
In Grafana, admin users can invite new users by email or a link. However, this is not supported in CPS vDRA.
ssh_keydir are required but not used by the
Add User To A Viewer Operational Group
In config mode, add the user to the “oper” group and commit as
scheduler(config)# nacm groups group oper user-name test2
Add User To A Grafana Editor Group
In config mode, add the user to the “grafana-editor” group and commit
scheduler(config)# nacm groups group grafana-editor user-name test2
Add User To A Grafana Admin Group
In config mode, add the user to the “grafana-admin” group and commit
scheduler(config)# nacm groups group grafana-admin user-name test2
Change A Grafana Users Password
In the Management CLI, issue the
aaa authentication users user
change-password command as follows:
scheduler# aaa authentication users user test2 change-password
Value for 'old-password' (<string>): ************
Value for 'new-password' (<string>): ********
Value for 'confirm-password' (<string>): ********
System message at 2017-03-08 21:17:18...
Commit performed by system via system using system.
Connect to Grafana
Use the following URL
to access Grafana and enter the user name and password:
Figure 1. Grafana Login
The following types of user roles are
Admin: An admin user can view,
update and create dashboards. Also, the admin can edit and add data sources and
Viewer: A viewer can only view dashboards and cannot not save or
Editor: An editor can view, update and create dashboards.