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
Copy file name to clipboardExpand all lines: docs/getting_started/installation.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,11 +73,7 @@ You can enable metrics to monitor the operation of vArmor. All metrics are expos
73
73
--set metrics.enabled=true
74
74
```
75
75
76
-
You can use the following command to create a `ServiceMonitor` object in the namespace where vArmor is installed. Default: disabled.
77
-
78
-
```bash
79
-
--set metrics.serviceMonitorEnabled=true
80
-
```
76
+
If the `monitoring.coreos.com/v1` API is available in the cluster, vArmor will automatically create a `ServiceMonitor` object during deployment for integration with Prometheus.
81
77
82
78
#### Set the Log Output Format to JSON
83
79
The default format of agent and manager is TEXT. You can use the following command to set it to JSON.
@@ -122,7 +118,7 @@ The feature extends network access control to restrict container access to speci
122
118
The feature is currently only supported by the BPF enforcer and requires Kubernetes v1.21 or higher.
123
119
124
120
#### Run Agent in HostNetwork Mode
125
-
The agent runs in its own network namespace and exposes the readinessProbe on port `6080` by default. If you want to run it in the host's network namespace, you can use following options.
121
+
The agent runs in its own network namespace and exposes the readinessProbe on port `9580` by default. If you want to run it in the host's network namespace, you can use following options.
Copy file name to clipboardExpand all lines: docs/getting_started/metrics.md
+3-15Lines changed: 3 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,7 @@ vArmor now includes a comprehensive metrics system. This document describes the
15
15
2. Install vArmor with metrics enabled:
16
16
```bash
17
17
helm install varmor varmor/varmor \
18
-
--set metrics.enable=true \
19
-
--set metrics.serviceMonitorEnabled=true
18
+
--set metrics.enable=true
20
19
```
21
20
22
21
3. Import Grafana dashboard:
@@ -26,20 +25,11 @@ vArmor now includes a comprehensive metrics system. This document describes the
26
25
- Select the appropriate Prometheus data source
27
26
- Click Import to finish
28
27
29
-
## Enabling Metrics
30
-
To enable the metrics system:
31
-
1. Set `metrics.enable` to `true` in your values configuration
32
-
2. To create a Prometheus ServiceMonitor, set `metrics.serviceMonitorEnabled` to `true`
33
-
34
-
Once enabled, metrics are exposed at the `/metric` endpoint on port 8081 of the manager.
35
-
36
28
## Available Metrics
37
29
38
30
### Profile Processing Metrics
39
31
These metrics track the status and performance of the ArmorProfile object processed by the Agent.
40
32
All profile processing metrics include the following labels:
41
-
-`namespace`: The namespace of the profile
42
-
-`profile_name`: Name of the profile
43
33
-`node_name`: Name of the node
44
34
45
35
| Metric Name | Type | Description |
@@ -61,11 +51,9 @@ These metrics provide insights into admission webhook operations of the Manager.
61
51
#### Webhook Latency Metric
62
52
The `varmor_webhook_latency` metric is a histogram that measures webhook processing latency with buckets at 0.1, 0.5, 1, 2, and 5 seconds.
63
53
This metric includes the following labels:
64
-
-`request_uid`: Request UID
65
54
-`request_kind`: The type of workload be submitted
66
-
-`request_namespace`: The namespace of workload be submitted
67
-
-`request_name`: The name of workload be submitted
68
-
-`request_operation`: Whether the workload be mutated by Manager or not
55
+
-`request_operation`: The operation type of the request
56
+
-`request_mutated`: Whether the workload be mutated by Manager or not
69
57
70
58
## Grafana Dashboard
71
59
A pre-configured Grafana dashboard is available in the codebase for visualizing these metrics. The dashboard provides comprehensive views of both profile processing and webhook performance metrics.
Copy file name to clipboardExpand all lines: website/docs/getting_started/installation.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,11 +77,7 @@ You can enable metrics to monitor the operation of vArmor. All metrics are expos
77
77
--set metrics.enabled=true
78
78
```
79
79
80
-
You can use the following command to create a `ServiceMonitor` object in the namespace where vArmor is installed. Default: disabled.
81
-
82
-
```bash
83
-
--set metrics.serviceMonitorEnabled=true
84
-
```
80
+
If the `monitoring.coreos.com/v1` API is available in the cluster, vArmor will automatically create a `ServiceMonitor` object during deployment for integration with Prometheus.
85
81
86
82
#### Set the Log Output Format to JSON
87
83
The default format of agent and manager is TEXT. You can use the following command to set it to JSON.
@@ -127,7 +123,7 @@ The feature extends network access control to restrict container access to speci
127
123
The feature is currently only supported by the BPF enforcer and requires Kubernetes v1.21 or higher.
128
124
129
125
#### Run Agent in HostNetwork Mode
130
-
The agent runs in its own network namespace and exposes the readinessProbe on port `6080` by default. If you want to run it in the host's network namespace, you can use following options.
126
+
The agent runs in its own network namespace and exposes the readinessProbe on port `9580` by default. If you want to run it in the host's network namespace, you can use following options.
0 commit comments