Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Warning
Network metrics is an experimental under development feature, expect breaking changes.
Network metrics
Grafana Beyla can be configured to provide network metrics between different endpoints. For example, between physical nodes, containers, Kubernetes pods, services, etc.
Note
Prometheus exporting for network metrics is not currently supported.
Get started
To get started using Beyla networking metrics, consult the quickstart setup documentation, and for advanced configuration, consult the configuration documentation.
Metric attributes
Network metrics provides a single OpenTelemetry metric beyla.network.flow.bytes, a counter of Number of bytes observed between two network endpoints, and can have the attributes in the following table.
By default, only the following attributes are reported: k8s.src.owner.name, k8s.src.namespace, k8s.dst.owner.name, k8s.dst.namespace, and k8s.cluster.name.
How to specify reported attributes
If the metric with all the possible attributes is reported it might lead to a cardinality explosion, especially when including external traffic in the src.address/dst.address attributes.
You can specify which attributes are allowed in the Beyla configuration, to aggregate the metric by them.
For example:
network:
enable: true
allowed_attributes:
- k8s.src.owner.name
- k8s.src.namespace
- k8s.dst.owner.name
- k8s.dst.namespace
- k8s.cluster.nameIn this example, the bytes metric is the aggregated by the source and destination owners. This is, all the pods from a given Deployment/StatefulSet/ReplicaSet/DaemonSet.



