Skip to content

Commit 43353c2

Browse files
Add section on how to export telemetry data to application insights (#4887)
1 parent dc6b128 commit 43353c2

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

docs/telemetry.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ Setting `ServiceControl/PrintMetrics` to `true` will print metrics to the logs a
88

99
## Audit
1010

11-
Set `ServiceControl.Audit/OtlpEndpointUrl` to a valid [OTLP endpoint url](https://opentelemetry.io/docs/specs/otel/protocol/exporter/#configuration-options). Only GRPC endpoints are supported at this stage.
12-
13-
It's recommended to use a local [OTEL Collector](https://opentelemetry.io/docs/collector/) to collect, batch and export the metrics to the relevant observability backend being used.
14-
15-
Example configuration: https://github.com/andreasohlund/Docker/tree/main/otel-monitoring
11+
Set `ServiceControl.Audit/OtlpEndpointUrl` to a valid [OTLP endpoint url](https://opentelemetry.io/docs/specs/otel/protocol/exporter/#configuration-options). Only GRPC endpoints are supported at this stage.
1612

1713
The following ingestion metrics with their corresponding dimensions are available:
1814

@@ -26,11 +22,11 @@ The following ingestion metrics with their corresponding dimensions are availabl
2622
- `result` - Indicates how the failure was resolved: `retry` or `stored-poison`
2723
- `sc.audit.ingestion.consecutive_batch_failures_total` - Consecutive batch failures
2824

29-
Example queries in PromQL for use in Grafana:
25+
Example queries in PromQL:
3026

31-
- Ingestion rate: `sum (rate(sc_audit_ingestion_message_duration_seconds_count[$__rate_interval])) by (exported_job)`
32-
- Failure rate: `sum(rate(sc_audit_ingestion_failures_total[$__rate_interval])) by (exported_job,result)`
33-
- Message duration: `histogram_quantile(0.9,sum(rate(sc_audit_ingestion_message_duration_seconds_bucket[$__rate_interval])) by (le,exported_job))`
27+
- Ingestion rate: `sum (rate(sc_audit_ingestion_message_duration_seconds_count[5m])) by (exported_job)`
28+
- Failure rate: `sum(rate(sc_audit_ingestion_failures_total[5m])) by (exported_job,result)`
29+
- Message duration: `histogram_quantile(0.9,sum(rate(sc_audit_ingestion_message_duration_seconds_bucket[5m])) by (le,exported_job))`
3430

3531
Example Grafana dashboard - https://github.com/andreasohlund/Docker/blob/main/otel-monitoring/grafana-platform-template.json
3632

@@ -52,3 +48,13 @@ To emit and visualize RavenDB telemetry:
5248
RAVEN_Monitoring_OpenTelemetry_OpenTelemetryProtocol_Endpoint: http://host.docker.internal:4317
5349
```
5450
3. Visualize the data, for example https://grafana.com/grafana/dashboards/22698-ravendb-prometheus/
51+
52+
## OTEL Collector
53+
54+
It's recommended to use a local [OTEL Collector](https://opentelemetry.io/docs/collector/) to collect, batch and export the metrics to the relevant observability backend being used.
55+
56+
Example configuration: https://github.com/andreasohlund/Docker/tree/main/otel-monitoring
57+
58+
### Azure Monitor
59+
60+
User the [exporter for Azure Monitor](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/azuremonitorexporter/README.md) to push telemetry to application insights.

0 commit comments

Comments
 (0)