Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Contrail Analytics Optional Modules

Analytics Optional Components

Contrail analytics is comprised of four building blocks. The last three listed are optional components.

  • Analytics collector

  • Analytics alarm

  • Analytics SNMP

  • Analytics database

Figure 1: Contrail Analytics ComponentsSystem architecture diagram of an analytics platform with four modules: analytics with nodemgr, redis, api, collector; analytics_alarm with nodemgr, alarm, kafka; analytics_snmp with nodemgr, snmp, topology; analytics_database with nodemgr, query, cassandra.

Regardless that the alarm, SNMP, and database analytics roles have not been installed and if installed are disabled, these components show as active when you run the Linux $sudo commands or view in Contrail Command. For more information, see the section “TripleO Provisioning” below.

Contrail Infrastructure Installed without Optional Analytics Components

Two topologies are considered in this example: multi-nodes or single node.

Multi-nodes

Contrail controller components are split onto three servers (Contrail controller, Contrail analytics, and Contrail analytics database). Only the first two servers are mandatory since Contrail analytics database is an optional component. This type of topology is used in production deployments.

Single node

This type of topology is used in test deployments.

Multi-Nodes Contrail Controller

Contrail Controller Node

Following is an example of the Contrail status on the Contrail controller node:

Contrail Analytics Node (with All Optional Components)

Following is the Contrail status on Contrail analytics node when Contrail analytics SNMP and Contrail analytics alarm have both been deployed:

Contrail analytics alarm and SNMP are deployed and active.

Contrail Analytics Node (without Analytics Optional Components)

Following is an example of the Contrail status on Contrail analytics node when Contrail analytics SNMP and Contrail analytics alarm have not been deployed:

Only Contrail analytics collector is deployed and active.

Contrail Analytics Database Node

Contrail analytics database is only deployed when the analytics database component is enabled. The following example shows the Contrail status on the Contrail analytics database node:

Single Node Contrail Controller

Contrail Controller Node (with All Analytics Optional Components)

Following is the Contrail status on Contrail controller node when Contrail analytics SNMP, Contrail analytics alarm, and Contrail analytics database have been deployed:

Contrail database (query), analytics alarm, and SNMP are deployed and active.

Contrail Controller Node (without Analytics Optional Components)

Following is an example of the Contrail status on Contrail controller node when Contrail analytics SNMP, Contrail analytics alarm, and Contrail analytics database have not been deployed:

Contrail database (query), analytics alarm, and SNMP are not deployed.

Contrail Web UI

Web UI with Optional Components

Figure 2 displays the Contrail Web UI dashboard with all optional analytics components deployed.

Figure 2: Web UI - All Optional Analytics Components DeployedScreenshot of a network management interface with menu categories for monitoring and configuring network settings. Highlighted sections include Alarms in red, Physical Topology in green, and Query options in purple.

A database node is visible in the infrastructure dashboard.

Figure 3: Web UI - Database Node in DashboardMonitoring dashboard screenshot showing infrastructure overview with virtual routers, control node, analytics node, config node, and highlighted database node. Scatter plot displays used versus available space for the database node. No data in logs and no alarms. Navigation menu expanded under infrastructure.

Web UI without Optional Components

Figure 4 displays the Contrail Web UI dashboard without optional analytics components deployed.

Figure 4: Web UI - Optional Analytics Components Not DeployedDashboard interface for network management with sections Monitor, Configure, and Setting, featuring subcategories like Infrastructure, Networking, Security, Services, and DNS.

No database node is visible in the infrastructure dashboard:

Figure 5: Web UI - Database Node Not Visible in DashboardDashboard overview of network monitoring tool showing 2 virtual routers, 1 control node, 1 analytics node, 1 config node, 0 database nodes. Displays 4 instances, 14 interfaces, 3 VPNs, CPU share graph is empty. No logs or alarms.

Analytics Alarm Feature Enabled

Figure 6 displays the Monitor > Alarms menu.

Figure 6: Web UI - Monitor > Alarms MenuDashboard with sidebar menu showing Infrastructure, Security, Networking, Debug, and Alarms. Alarms is selected. Main area displays Active Alarms graph with one data point at 18:50. Events section below graph is empty. Right side states Active Alarms: No Alarms Found.

Figure 7 displays the Configure > Alarms menu.

Figure 7: Web UI - Configure > Alarms MenuAlarm Rules interface showing no alarms configured. Navigation menu includes Infrastructure, Security, and more. Breadcrumb: Configure > Alarms > Project > default-domain > demo.

Figure 8 displays the dialog box which appears when Global Alarm, next to Logged in User in the upper right, is selected.

Figure 8: Web UI - Global Alarm SettingsUser interface for managing alarms with no active alarms displayed. Navigation menu includes Infrastructure, Security, Tags, and more.

Analytics Alarm Feature Disabled

If the alarm analytics component is not deployed, then Contrail Web UI should not display the following alarm references:

  • Global Alarm (Next to Logged in User)

  • Monitor > Alarms

  • Configure > Alarms

There is not an appearance of Global Alarm or Alarms entry in the Monitor menu:

Figure 9: Analytics Alarm Disabled - Global Alarm and Alarm Not AvailableMonitoring dashboard for virtual infrastructure: 2 virtual routers, 1 control node, 1 analytics node, 1 config node active. 0 database nodes. 4 instances, 14 interfaces, 3 virtual networks. 5 servers, version 2005 Build 62.e7. No logs or alarms.

Alarms menu still available in Configure menu.

Figure 10: Analytics Alarm Disabled - Configure > Alarms User interface for managing alarm rules with a left navigation menu and main section showing "No Alarms found" under columns for Name, Severity, UVE Keys, and Rule.

Analytics SNMP Feature Enabled

Figure 11 displays the Physical Topology option in the Monitor menu.

Figure 11: Analytics SNMP Feature Enabled - Physical Topology Menu AvailableNetwork interface screenshot: No physical device found in Physical Topology. Empty Flows table. Navigation menu on left.

Analytics SNMP Feature Disabled

If the alarm analytics component is not provisioned, then Contrail Web UI does not display the Physical Topology menu option.

Figure 12: Analytics SNMP Feature Disabled - Physical Topology Menu Not AvailableMonitoring dashboard screenshot showing active virtual routers 2, control nodes 1, and analytics nodes 1. Config and database nodes inactive. Lists 4 instances, 14 interfaces, and 3 VMs. Displays empty graph, no logs, and 5 servers. No alarms found.

Analytics Database Enabled

If analytics database is provisioned, then Contrail Web UI displays the Query page.

Figure 13: Analytics Database Enabled - Query Page AvailableNetwork monitoring tool interface showing query configuration for analyzing flow data. Features navigation panel with options like Flows and Statistics, time range set to Last 10 Mins, fields such as vrouter and sourceip, time granularity at 60 secs, and buttons for Run Query and Reset.

Analytics Database Disabled

If analytics database is not provisioned, then Contrail Web UI should not display the Query page. Query page logo is unavailable to launch Query page.

Figure 14: Analytics Database Disabled - Query Page Logo Not AvailableBlue bar chart icon for Monitor, red wrench icon for Tools, green gear icon for Settings, gray magnifying glass icon for Search. Current section: Monitor.

Tripleo Provisioning

Multi-Nodes Contrail Controller Topology

In order to enable or disable the Contrail analytics optional components, TripleO templates have to be modified.

  • In ContrailAnalytics role, ContrailAnalyticsSnmp, and ContrailAnalyticsAlarm resources can be removed:

  • ContrailAnalyticsDatabase role can also be removed (not selected using ContrailAnalyticsDatabaseCount = 0) into a rollout as this role is deploying only ContrailAnalyticsDatabase resource:

  • ContrailController role is kept unchanged.

Single Node Contrail Controller Topology

In order to enable or disable the Contrail analytics optional components, TripleO templates have to be modified. In ContrailController role, ContrailAnalyticsSnmp, ContrailAnalyticsAlarm, and ContrailAnalyticsDatabase resources can be removed, other contrail resources are kept:

TripleO Template Update

TripleO templates were updated in June 2020 to allow disabling the provisioning of Contrail analytics components.

Earlier Contrail TripleO templates have to be patched in order to replace docker/services/contrail/contrail-base.yaml file in which optional analytics component provision is hardcoded:

Appendix

Contrail Command UI

The disabled roles and charts are visible on the Query page but they are not operational.

Figure 15: Query Page Visible in DashboardContrail Command interface showing Query Flows page with no data to display. Navigation menu highlights Query. Users can set time range, terms, filters, and run queries.

Regardless that the alarm, SNMP, and database analytics roles have been disabled, they are still reported by Contrail Command.

Figure 16: Disabled Roles Still Visible in Contrail CommandScreenshot of Contrail Command UI showing the Servers section with server details like hostname, type, IP address, and cluster roles.

The following five charts will always display empty.

Figure 17: Empty Charts in Compute NodesContrail Command interface showing a navigation menu with categories like Monitoring, Infrastructure, and Security, and a dashboard with tabs for network node metrics.
Figure 18: Empty Charts in Config NodesDashboard interface of Contrail Command for monitoring Config Nodes with tabs for node types, panels showing no data available, and a sidebar for navigation.
Figure 19: Empty Charts in Analytics NodesContrail Command dashboard shows Analytics Nodes with sections: DB Writes, Queries, Message Traffic per Min, Analytics Messages, all displaying No Data Available.
Figure 20: Empty Charts in Control NodesContrail Command interface showing Monitoring section, Dashboards view for Control Nodes. Metrics display No Data Available. User: admin.
Figure 21: Empty Charts in Database NodesContrail Command interface showing Monitoring Dashboards for Database Nodes with panels like Cassandra CPU Share and Cassandra Memory Usage displaying No Data Available.

The Alarms page displays alarms pulled from the Contrail analytics_alarm component. When the analytics_alarm component is disabled, the Alarms page will always display no data.

Figure 22: Empty Alarms PageContrail Command interface showing Alarms tab in Infrastructure section with no active alarms. Admin user logged in.
Release History Table
Release
Description
2008
TripleO templates were updated in June 2020 to allow disabling the provisioning of Contrail analytics components.