mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-02 16:26:48 +00:00
Critical fixes: - Restore accidentally removed mallocTrim call and MallocTrim.h include - Add missing shouldTraceLedger() to interface and all implementations - Derive networkId/networkType from config_->NETWORK_ID (0=mainnet, 1=testnet, 2=devnet) instead of leaving defaults unpopulated - Clamp sampling_ratio to [0.0, 1.0] in config parser PR comment fixes: - Rename rippled -> xrpld in service name defaults, getTracer() calls, Docker network, comments, and docs/build/telemetry.md - Remove exporter config option (only otlp_http supported) - Add trace_ledger and service_name to example config - Clarify head-based sampling semantics in config comments - Add filter descriptions for span intrinsic filters in Grafana datasource - Add inline comments to Docker Compose services Docker/config improvements: - Remove deprecated version: "3.8" from docker-compose.yml - Pin images: collector 0.121.0, grafana 11.5.2 - Add health_check extension to otel-collector-config.yaml - Comment out Tempo metrics_generator remote_write (no Prometheus service) - Add Prometheus datasource caveat in Grafana datasource config Other: - Revert unrelated formatting changes in ServiceRegistry.h - Change Conan telemetry default to False (matches CMake OFF) - Add CLAUDE.md-required docs (ASCII diagrams, usage examples, @note thread-safety) to Telemetry.h and SpanGuard.h Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
62 lines
1.5 KiB
YAML
62 lines
1.5 KiB
YAML
# Grafana Tempo configuration for xrpld telemetry stack.
|
|
#
|
|
# Runs in single-binary mode for local development.
|
|
# Receives traces via OTLP/gRPC from the OTel Collector and stores
|
|
# them locally. Queryable via Grafana Explore using the Tempo datasource.
|
|
#
|
|
# Search filters are configured on the Grafana datasource side
|
|
# (grafana/provisioning/datasources/tempo.yaml). Tempo auto-indexes
|
|
# all span attributes for search in single-binary mode.
|
|
#
|
|
# For production, replace local storage with S3/GCS backend and adjust
|
|
# retention via the compactor settings. See:
|
|
# https://grafana.com/docs/tempo/latest/configuration/
|
|
|
|
stream_over_http_enabled: true
|
|
|
|
server:
|
|
http_listen_port: 3200
|
|
|
|
distributor:
|
|
receivers:
|
|
otlp:
|
|
protocols:
|
|
grpc:
|
|
endpoint: 0.0.0.0:4317
|
|
|
|
ingester:
|
|
max_block_duration: 5m
|
|
|
|
compactor:
|
|
compaction:
|
|
block_retention: 1h
|
|
|
|
# Enable metrics generator for service graph and span metrics.
|
|
# Produces RED metrics (rate, errors, duration) per service/span,
|
|
# feeding Grafana's service map visualization.
|
|
metrics_generator:
|
|
registry:
|
|
external_labels:
|
|
source: tempo
|
|
storage:
|
|
path: /var/tempo/generator/wal
|
|
# Uncomment and add a Prometheus service to docker-compose.yml
|
|
# to enable remote_write for service graph metrics:
|
|
# remote_write:
|
|
# - url: http://prometheus:9090/api/v1/write
|
|
|
|
overrides:
|
|
defaults:
|
|
metrics_generator:
|
|
processors:
|
|
- service-graphs
|
|
- span-metrics
|
|
|
|
storage:
|
|
trace:
|
|
backend: local
|
|
wal:
|
|
path: /var/tempo/wal
|
|
local:
|
|
path: /var/tempo/blocks
|