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/snippets/collecting-metrics.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,14 @@ You can also set up the OpenTelemetry Collector to receive metrics from Knative
25
25
26
26
1. Install the [Prometheus Stack](https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack) by using [Helm](https://helm.sh/docs/intro/using_helm/):
1. Grafana dashboards can be imported from the [`monitoring` repository](https://github.com/knative-extensions/monitoring).
40
41
41
42
1. If you are using the Grafana Helm Chart with the dashboard sidecar enabled (the default), you can load the dashboards by applying the following configmaps.
Copy file name to clipboardExpand all lines: docs/versioned/serving/observability/metrics/collecting-metrics.md
+20-21Lines changed: 20 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,26 +13,25 @@ function: how-to
13
13
1. To enable prometheus metrics collection you will want to update `config-observability` ConfigMap and set the `metrics-protocol` to `prometheus`. For request-metrics we recommend setting up pushing metrics to prometheus. This requires enabling the Prometheus OLTP receiver. This is already configured in our monitoring example.
14
14
15
15
16
-
```yaml
17
-
apiVersion: v1
18
-
kind: ConfigMap
19
-
metadata:
20
-
name: config-observability
21
-
namespace: knative-serving
22
-
data:
23
-
# metrics-protocol field specifies the protocol used when exporting metrics
24
-
# It supports either 'none' (the default), 'prometheus', 'http/protobuf' (OTLP HTTP), 'grpc' (OTLP gRPC)
1. Apply the ServiceMonitors/PodMonitors to collect metrics from Knative Serving Control Plane.
38
37
@@ -47,5 +46,5 @@ data:
47
46
1. If you are using the Grafana Helm Chart with the dashboard sidecar enabled (the default), you can load the dashboards by applying the following configmaps.
0 commit comments