Metrics
Elastic Stream supports these metrics backends:
- OpenTelemetry
- Prometheus
OpenTelemetry
To enable the OpenTelemetry metrics exporter, add this configuration to the range server:
observation:
metrics:
enable: true
mode: "otlp"
endpoint: "http://localhost:4317"
Configuration
enable
Required, Default="true"
Enable metrics exporter.
observation:
metrics:
enable: true
mode
Required, Default="prometheus"
Metrics exporter mode, available values: "otlp", "prometheus".
observation:
metrics:
mode: "otlp"
endpoint
Required, Default="http://localhost:4317", Format="http://<host>:<port>
"
Address of the OpenTelemetry Collector to send metrics to.
observation:
metrics:
endpoint: "http://localhost:4317"
protocol
Optional, Default="grpc"
This instructs the exporter to send metrics to the OpenTelemetry Collector using which protocol.
Currently, only gRPC with plain text is supported.
observation:
metrics:
protocol: "grpc"
interval
Optional, Default="10"
Interval at which metrics are sent to the OpenTelemetry Collector, unit is seconds.
observation:
metrics:
interval: 10
timeout
Optional, Default="3"
Max waiting time for exporting metrics to the OpenTelemetry Collector, unit is seconds.
observation:
metrics:
timeout: 3
Prometheus
To enable the Prometheus metrics exporter, add this configuration to the range server:
observation:
metrics:
enable: true
mode: "prometheus"
host: "localhost"
port: 9898
Configuration
enable
Required, Default="true"
Enable metrics exporter.
observation:
metrics:
enable: true
mode
Required, Default="prometheus"
Metrics exporter mode, available values: "otlp", "prometheus".
observation:
metrics:
mode: "prometheus"
host
Required, Default="localhost"
Prometheus exporter binding address.
observation:
metrics:
host: "localhost"
port
Required, Default=9898
Prometheus exporter listening port.
observation:
metrics:
port: 9898