This document describes how to configure observability mechanisms including metrics, logging, and tracing for Flipt v2.
/metrics
HTTP endpoint. To see which metrics are currently supported, point your browser
to FLIPT_HOST/metrics
(ex: localhost:8080/metrics
).
You should see a bunch of metrics being recorded such as:
metrics.enabled
configuration option to false
.OTEL_EXPORTER_OTLP_METRICS_ENDPOINT
environment variable.
OTEL_EXPORTER_OTLP_METRICS_HEADERS
environment variable.
log.encoding
configuration option.
L
: Level (log level). Possible values include: debug, info, warn, error, fatal, and panic.T
: Timestamp. The timestamp is in ISO 8601 format, widely used for representing date and time. It includes the date, time, and time zone information. For example, β2024-01-20T21:59:49-05:00β represents the date and time in the Eastern Time Zone (UTC-5).M
: Message. The message describes the log event. It can include information about the operation, errors encountered, or other relevant details.OTLP_LOGS_EXPORTER
environment variable
OTEL_EXPORTER_OTLP_LOGS_ENDPOINT
environment variable.
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT
environment variable.
OTEL_EXPORTER_OTLP_TRACES_HEADERS
environment variable.
OTEL_SERVICE_NAME
- Sets the value of the service.name
resource attribute (default: flipt
)OTEL_RESOURCE_ATTRIBUTES
- Key-value pairs to be used as resource attributes.OTEL_EXPORTER_OTLP_ENDPOINT
- The OTLP endpoint to any signal data (metrics, traces, logs) toOTEL_EXPORTER_OTLP_HEADERS
- Key-value pairs to be used as OTLP headers for any signal data (metrics, traces, logs).OTEL_EXPORTER_OTLP_PROTOCOL
- The protocol to use for the OTLP endpoint (grpc, http/protobuf, http/json)