| 1 | # OpenTelemetry Plugin Configuration |
| 2 | # This file configures the OpenTelemetry metrics and logs ingestion for Netdata |
| 3 | |
| 4 | endpoint: |
| 5 | # gRPC endpoint to listen on for OpenTelemetry data |
| 6 | path: "127.0.0.1:4317" |
| 7 | |
| 8 | # Path to TLS certificate file (enables TLS when provided) |
| 9 | tls_cert_path: null |
| 10 | |
| 11 | # Path to TLS private key file (required when TLS certificate is provided) |
| 12 | tls_key_path: null |
| 13 | |
| 14 | # Path to TLS CA certificate file for client authentication (optional) |
| 15 | tls_ca_cert_path: null |
| 16 | |
| 17 | metrics: |
| 18 | # Directory with configuration files for mapping OTEL metrics to Netdata charts |
| 19 | chart_configs_dir: @configdir_POST@/otel.d/v1/metrics |
| 20 | |
| 21 | # Collection interval in seconds (1–3600). Defines the Netdata chart update frequency. |
| 22 | interval_secs: 10 |
| 23 | |
| 24 | # Grace period in seconds. After the last data point, the plugin waits this long |
| 25 | # before gap-filling. When interval_secs is overridden, this auto-derives as |
| 26 | # 5 * interval_secs unless explicitly set. |
| 27 | grace_period_secs: 60 |
| 28 | |
| 29 | # Expiry duration in seconds. Charts with no data for this long are removed. |
| 30 | expiry_duration_secs: 900 |
| 31 | |
| 32 | # Maximum number of new charts that can be created per gRPC request. |
| 33 | # Limits cardinality explosion from high-cardinality label combinations. |
| 34 | max_new_charts_per_request: 100 |
| 35 | |
| 36 | logs: |
| 37 | # Directory to store journal files for logs. |
| 38 | journal_dir: @logdir_POST@/otel/v1 |
| 39 | |
| 40 | # Maximum file size for individual journal files (e.g., "100MB", "1.5GB"). |
| 41 | size_of_journal_file: "100MB" |
| 42 | |
| 43 | # Maximum number of entries per journal file. |
| 44 | entries_of_journal_file: 50000 |
| 45 | |
| 46 | # Maximum time span that entries in a single journal file can cover (e.g., "2 hours", "1h", "30m"). |
| 47 | duration_of_journal_file: "2 hours" |
| 48 | |
| 49 | # Maximum number of journal files to keep. |
| 50 | number_of_journal_files: 10 |
| 51 | |
| 52 | # Maximum total size for all journal files combined (e.g., "1GB", "500MB") |
| 53 | size_of_journal_files: "1GB" |
| 54 | |
| 55 | # Maximum age for journal entries (e.g., "7 days", "1 week", "168h"). |
| 56 | duration_of_journal_files: "7 days" |
| 57 | |
| 58 | # Store the complete OTLP JSON representation in the OTLP_JSON field. |
| 59 | # When enabled, each log entry includes the full original JSON message for debugging and reprocessing. |
| 60 | store_otlp_json: false |