-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NETOBSERV-1017: pods/services bandwidth (#523)
Provide sample FlowMetrics files to get top pods/services bandwidth The metrics can be queried with: - Pods incoming: topk(10, sum(rate(netobserv_pod_incoming_bytes_total[1m])) by (DstK8S_Name, DstK8S_Namespace)) - Pods outgoing: topk(10, sum(rate(netobserv_pod_outgoing_bytes_total[1m])) by (SrcK8S_Name, SrcK8S_Namespace)) - Services incoming: topk(10, sum(rate(netobserv_service_incoming_bytes_total[1m])) by (DstK8S_Name, DstK8S_Namespace))
- Loading branch information
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: flows.netobserv.io/v1alpha1 | ||
kind: FlowMetric | ||
metadata: | ||
name: flowmetric-pod-incoming | ||
spec: | ||
metricName: pod_incoming_bytes_total | ||
type: Counter | ||
valueField: Bytes | ||
direction: Ingress | ||
labels: [DstK8S_Name,DstK8S_Namespace,DstK8S_OwnerName,DstK8S_OwnerType,DstK8S_HostName] | ||
filters: | ||
- field: DstK8S_Type | ||
value: Pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
apiVersion: flows.netobserv.io/v1alpha1 | ||
kind: FlowMetric | ||
metadata: | ||
name: flowmetric-pod-outgoing | ||
spec: | ||
metricName: pod_outgoing_bytes_total | ||
type: Counter | ||
valueField: Bytes | ||
direction: Egress | ||
labels: [SrcK8S_Name,SrcK8S_Namespace,SrcK8S_OwnerName,SrcK8S_OwnerType,SrcK8S_HostName] | ||
filters: | ||
- field: SrcK8S_Type | ||
value: Pod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: flows.netobserv.io/v1alpha1 | ||
kind: FlowMetric | ||
metadata: | ||
name: flowmetric-service-incoming | ||
spec: | ||
metricName: service_incoming_bytes_total | ||
type: Counter | ||
valueField: Bytes | ||
# Note that we need to look from the sender point of view to get traffic to services, hence Egress here | ||
direction: Egress | ||
labels: [DstK8S_Name,DstK8S_Namespace,DstK8S_OwnerName,DstK8S_OwnerType,DstK8S_HostName] | ||
filters: | ||
- field: DstK8S_Type | ||
value: Service |