Considerations
Configuration Options
networkMetrics
networkMetrics
networkMetrics
object : Enable network flow and TCP stats metrics for scoped workloads. Setting this field (even as an empty object {}) enables collection; omit it to leave metrics disabled.Multiple rules merge with OR semantics: if any matching rule enables network metrics, they are enabled for that source/language.
Cluster infrastructure for network flow metrics
Network flow metrics require odiglet to run withhostNetwork, which makes the pod share the host’s network namespace instead of getting its own. Configure this once at the cluster level in Helm:
Basic Example
Create
InstrumentationRule resources in the Odigos installation namespace (typically odigos-system). Rules in other namespaces are not picked up by Odigos.1
Enable network metrics infrastructure
Set
metricsSources.networkMetrics.enabled to true in your Odigos Helm values and upgrade the release.2
Create the InstrumentationRule
Create a YAML file with the following content:
network-metrics.yaml
3
Apply the rule
Scoped Example
To limit the rule to a single workload, addscopes. Omit scopes (or leave it empty) to apply the rule cluster-wide.
network-metrics-scoped.yaml
Exported Metrics
When this rule is enabled, the following metrics are exported for matching workloads:These metrics are collected using OBI. See the OBI instrumentation guide to learn more about the collectors, metric families, and available attributes.