Skip to content

Network policy stats

Arthur Evstifeev requested to merge network-policy-stats into master

What does this MR do?

This MR adds Network Policy section to the Threat Monitoring page. Stats are based on per namespace prometheus metrics.

Frontend changes:

  • Refactored WAF components to be reusable.
  • Introduced ThreatMonitoringSection component.
  • Added network policy related changes to the store, behind the network_policy_ui feature flag.
  • Disabled callout at the top as requested in the issue.
  • Make the x-axis render the requested range, rather the the range of the returned data (See #14707 (comment 301880401)).
  • Change the 7 day interval to a day, for a less noisy graph (see #14707 (comment 301077240)).

Notes:

  • Changed documentation path to the new docs page as requested in the issue. This doc is empty will create content for it in a separate MR.
  • Empty states are being re-designed so I only did minimal changes to those. Will create a separate MR for the new empty states.

Related to #32365 (closed). Backend part is in !25939 (merged)

Screenshots

Feature flag disabled

mfx1.home_3002_gitlab-org_dependency-list-test_-threat_monitoring__1

Feature flag enabled

Screenshot_2020-02-25_Threat_Monitoring___Administrator_cilium-stats

Screenshot_2020-02-25_Threat_Monitoring___Administrator_cilium-stats_1_

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Mark Florian

Merge request reports