Uploaded image for project: 'Network Observability'
  1. Network Observability
  2. NETOBSERV-1343

Configure dashboards from custom metrics

Details

    • Story
    • Resolution: Unresolved
    • Normal
    • None
    • None
    • None
    • NetObserv - Sprint 244, NetObserv - Sprint 245, NetObserv - Sprint 246, NetObserv - Sprint 249, NetObserv - Sprint 250, NetObserv - Sprint 251, NetObserv - Sprint 252

    Description

      Add the ability to generate a dashboard for a custom metric. This should be optional, ie. a user can define a metric without generating a dashboard for it.

      We should be able to reuse most of our dashboard generation code.

       

      Note: the PR includes examples of usage. Cf for instance https://github.com/netobserv/network-observability-operator/pull/609/files#diff-0a32cdb0b9df09ffa650e4fb007b64589488e36d94b0872a98de92edaed1821e

      # More examples in https://github.com/netobserv/network-observability-operator/tree/main/config/samples/flowmetrics
      apiVersion: flows.netobserv.io/v1alpha1
      kind: FlowMetric
      metadata:
        name: flowmetric-cluster-egress-traffic
      spec:
        metricName: cluster_egress_bytes_total
        type: Counter
        valueField: Bytes
        direction: Egress
        labels: [SrcK8S_HostName,SrcK8S_Namespace,SrcK8S_OwnerName,SrcK8S_OwnerType]
        filters:
        - field: DstSubnetLabel
          matchType: Absence
        charts:
        - dashboardName: Main
          title: Cluster egress traffic
          unit: Bps
          type: SingleStat
          queries:
          - promQL: "sum(rate($METRIC[2m]))"
            legend: ""
        - dashboardName: Main
          sectionName: Cluster
          title: Top cluster egress traffic per workload
          unit: Bps
          type: StackArea
          queries:
          - promQL: "sum(rate($METRIC{SrcK8S_Namespace!=\"\"}[2m])) by (SrcK8S_Namespace, SrcK8S_OwnerName)"
            legend: "{{SrcK8S_Namespace}} / {{SrcK8S_OwnerName}}" 

      Attachments

        Activity

          People

            jtakvori Joel Takvorian
            jtakvori Joel Takvorian
            Mehul Modi Mehul Modi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: