Skip to content

Commit c7af9be

Browse files
Document audit telemetry
1 parent c9a8215 commit c7af9be

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/telemetry.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Telemetry
2+
3+
Instances can configured to emit telemetry to aid when performance testing or troubleshooting performance related issues.
4+
5+
## Error
6+
7+
Setting `ServiceControl/PrintMetrics` to `true` will print metrics to the logs at `INFO` level.
8+
9+
## Audit
10+
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+
The following metrics are available:
16+
17+
### Ingestion
18+
19+
- `sc.audit.ingestion.count` - Successful ingested audit message count
20+
- `sc.audit.ingestion.retry` - Retried audit message count
21+
- `sc.audit.ingestion.failed` - Failed audit message count
22+
- `sc.audit.ingestion.duration` - Audit message processing duration (in milliseconds)
23+
- `sc.audit.ingestion.message_size` - Audit message body size (in kilobytes)
24+
- `sc.audit.ingestion.forwarded_count` - Forwarded audiit messages count
25+
26+
### Batching
27+
28+
- `sc.audit.ingestion.batch_duration` - Batch processing duration (in milliseconds)
29+
- `sc.audit.ingestion.batch_size` - Batch size (number of messages)
30+
- `sc.audit.ingestion.consecutive_batch_failures` - Consecutive batch failures
31+
32+
### Storage
33+
34+
- `sc.audit.ingestion.audits_count` - Stored audit message count
35+
- `sc.audit.ingestion.sagas_count` - Stored sagas message count
36+
- `sc.audit.ingestion.commit_duration` - Storage unit of work commit duration (in milliseconds)
37+
38+
## Monitoring
39+
40+
No telemetry is currently available.

0 commit comments

Comments
 (0)