Skip to main content

Metrics

Prometheus

To enable the Prometheus /metrics endpoint, set the PROMETHEUS_ENABLED environment variable to true.

When enabled, Flagsmith serves the /metrics endpoint on port 9100.

The metrics provided by Flagsmith are described below.

flagsmith_build_info

Gauge.

Flagsmith version and build information.

Labels:

  • ci_commit_sha
  • version

flagsmith_dynamo_environment_document_compression_ratio

Histogram.

Compression ratio (compressed_size / uncompressed_size) of environment documents.

Labels:

  • table

flagsmith_dynamo_environment_document_size_bytes

Histogram.

Size of environment documents written to DynamoDB.

Labels:

  • table
  • compressed

flagsmith_environment_document_cache_queries

Counter.

Results of cache retrieval for environment document. result label is either hit or miss.

Labels:

  • result

flagsmith_experimentation_warehouse_connection_verifications

Counter.

Outcomes of connection verification attempts against customers' own data warehouses. result label is either success or failure.

Labels:

  • result

flagsmith_experimentation_warehouse_delivery_objects

Counter.

Buffered S3 event objects processed by delivery to customers' own data warehouses. result label is delivered for objects inserted and archived, or rejected for objects the warehouse refused, which are moved aside and never retried.

Labels:

  • result

flagsmith_experimentation_warehouse_delivery_runs

Counter.

Outcomes of per-connection runs delivering buffered event objects to customers' own data warehouses. result label is either success or failure; a failed run delivers nothing and is retried on the next tick.

Labels:

  • result

flagsmith_http_server_request_duration_seconds

Histogram.

HTTP request duration in seconds.

Labels:

  • route
  • method
  • response_status

flagsmith_http_server_requests

Counter.

Total number of HTTP requests.

Labels:

  • route
  • method
  • response_status

flagsmith_http_server_response_size_bytes

Histogram.

HTTP response size in bytes.

Labels:

  • route
  • method
  • response_status

flagsmith_oauth2_dcr_registrations

Counter.

Total OAuth2 dynamic client registration requests, labelled by the requested token endpoint auth method and whether the registration was accepted or rejected.

Labels:

  • token_endpoint_auth_method
  • outcome

flagsmith_segment_membership_backfill_duration_seconds

Histogram.

Duration of a segment-membership backfill for one environment.

Labels:

flagsmith_segment_membership_backfill_identities

Counter.

Total identities mirrored from Dynamo to ClickHouse by the segment-membership backfill task across all environments.

Labels:

flagsmith_segment_membership_read_duration_seconds

Histogram.

Duration of one segment membership page read.

Labels:

flagsmith_segment_membership_refresh_duration_seconds

Histogram.

Duration of a single segment-membership count-refresh run for one project.

Labels:

flagsmith_segment_membership_refresh_failures

Counter.

Total segment-membership refresh runs that failed for any reason.

Labels:

flagsmith_task_processor_enqueued_tasks

Counter.

Total number of enqueued tasks.

Labels:

  • task_identifier

flagsmith_task_processor_finished_tasks

Counter.

Total number of finished tasks. Only collected by Task Processor. task_type label is either recurring or standard.

Labels:

  • task_identifier
  • task_type
  • result

flagsmith_task_processor_task_duration_seconds

Histogram.

Task processor task duration in seconds. Only collected by Task Processor. task_type label is either recurring or standard.

Labels:

  • task_identifier
  • task_type
  • result

StatsD

The Flagsmith WSGI worker emits per-request access log metrics (request counts, durations, HTTP statuses) to StatsD when configured. See StatsD for setup.