|
6 | 6 | [id="exposing-metrics_{context}"]
|
7 | 7 | = Exposing the metrics
|
8 | 8 |
|
9 |
| -The OpenTelemetry Collector exposes the metrics about the data volumes it has processed. The following metrics are for spans, although similar metrics are exposed for metrics and logs signals: |
| 9 | +The OpenTelemetry Collector exposes the following metrics about the data volumes it has processed: |
10 | 10 |
|
11 | 11 | `otelcol_receiver_accepted_spans`:: The number of spans successfully pushed into the pipeline.
|
12 |
| - |
13 | 12 | `otelcol_receiver_refused_spans`:: The number of spans that could not be pushed into the pipeline.
|
14 | 13 | `otelcol_exporter_sent_spans`:: The number of spans successfully sent to the destination.
|
15 |
| - |
16 | 14 | `otelcol_exporter_enqueue_failed_spans`:: The number of spans failed to be added to the sending queue.
|
| 15 | +`otelcol_receiver_accepted_logs`:: The number of logs successfully pushed into the pipeline. |
| 16 | +`otelcol_receiver_refused_logs`:: The number of logs that could not be pushed into the pipeline. |
| 17 | +`otelcol_exporter_sent_logs`:: The number of logs successfully sent to the destination. |
| 18 | +`otelcol_exporter_enqueue_failed_logs`:: The number of logs failed to be added to the sending queue. |
| 19 | +`otelcol_receiver_accepted_metrics`:: The number of metrics successfully pushed into the pipeline. |
| 20 | +`otelcol_receiver_refused_metrics`:: The number of metrics that could not be pushed into the pipeline. |
| 21 | +`otelcol_exporter_sent_metrics`:: The number of metrics successfully sent to the destination. |
| 22 | +`otelcol_exporter_enqueue_failed_metrics`:: The number of metrics failed to be added to the sending queue. |
| 23 | + |
| 24 | +You can use these metrics to troubleshoot issues with your Collector. For example, if the `otelcol_receiver_refused_spans` metric has a high value, it indicates that the Collector is not able to process incoming spans. |
17 | 25 |
|
18 | 26 | The Operator creates a `<cr_name>-collector-monitoring` telemetry service that you can use to scrape the metrics endpoint.
|
19 | 27 |
|
@@ -68,14 +76,7 @@ Depending on the deployment mode of the OpenTelemetry Collector, the internal me
|
68 | 76 | Alternatively, if you do not set the `enableMetrics` field to `true`, you can access the metrics endpoint at `+http://localhost:8888/metrics+`.
|
69 | 77 | ====
|
70 | 78 |
|
71 |
| -. On the *Observe* page in the web console, enable *User Workload Monitoring* to visualize the scraped metrics. |
72 |
| -+ |
73 |
| -[NOTE] |
74 |
| -==== |
75 |
| -Not all processors expose the required metrics. |
76 |
| -==== |
77 |
| - |
78 |
| -. In the web console, go to *Observe* -> *Dashboards* and select the *OpenTelemetry Collector* dashboard from the drop-down list to view it. |
| 79 | +. Optional: If the *User Workload Monitoring* feature is enabled in the web console, go to *Observe* -> *Dashboards* in the web console, and then select the *OpenTelemetry Collector* dashboard from the drop-down list to view it. For more information about the *User Workload Monitoring* feature, see "Enabling monitoring for user-defined projects" in _Monitoring_. |
79 | 80 | +
|
80 | 81 | [TIP]
|
81 | 82 | ====
|
|
0 commit comments