You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Network Policy Agent exposes Prometheus metrics on port 8162 (configurable via `--metrics-bind-addr` flag). The drop metrics are only available when the `--enable-policy-event-logs` flag is set to `true`.
231
+
232
+
### Available Metrics
233
+
234
+
#### `network_policy_drop_count_total`
235
+
236
+
Type: Counter
237
+
238
+
Description: Total number of packets dropped by network policy agent
239
+
240
+
Labels:
241
+
-`direction`: Traffic direction (ingress/egress)
242
+
243
+
#### `network_policy_drop_bytes_total`
244
+
245
+
Type: Counter
246
+
247
+
Description: Total number of bytes dropped by network policy agent
248
+
249
+
Labels:
250
+
-`direction`: Traffic direction (ingress/egress)
251
+
252
+
### Accessing Metrics
253
+
254
+
Metrics can be scraped using Prometheus or accessed directly via HTTP:
255
+
256
+
```console
257
+
curl localhost:8162/metrics
258
+
```
259
+
260
+
**Sample Output:**
261
+
262
+
```
263
+
# HELP network_policy_drop_bytes_total Total number of bytes dropped by network policy agent
0 commit comments