Zum Hauptinhalt springen

Metrics

The OpenTalk controller is collecting metrics and is exposing them through the /metrics endpoint.

Configuration

The section in the configuration file is called metrics.

By default, the /metrics endpoint refuses all connections. The access can be configured with an allowlist.

FieldTypeRequiredDefault valueDescription
allowliststringno-List of IP-Addresses or Subnet which are allowed to fetch metrics

Examples

Access Denied (default)

[metrics]
allowlist = []

Only allow localhost

[metrics]
allowlist = ["127.0.0.0/8", "::ffff:0:0/96"]

Allow IPs and Subnets

[metrics]
allowlist = ["1.1.1.1", "127.0.0.0/8"]

Web-API

The metrics can be accessed via the /metrics endpoint in the OpenMetrics Text Format, which is utilized by prometheus.

Metrics Exposed

KeyTypeLabelsDescription
web_request_durations_buckethistogrammethod, handler, statussummary of request durations
web_response_sizes_buckethistogrammethod, handler, statussummary of response sizes
web_issued_email_tasks_count_bucketcountermail_task_kindNumber of issued email tasks
signaling_runner_startup_time_seconds_buckethistogramsuccessfulTime the runner takes to initialize
signaling_runner_destroy_time_seconds_buckethistogramsuccessfulTime the runner takes to stop
signaling_created_rooms_count_bucketcounterNumber of created rooms
signaling_destroyed_rooms_count_bucketcounterNumber of destroyed rooms
signaling_participants_count_bucketgaugeparticipation_kindNumber of participants
signaling_participants_with_audio_count_bucketgaugemedia_session_typeNumber of participants with audio unmuted
signaling_participants_with_video_count_bucketgaugemedia_session_typeNumber of participants with video unmuted
sql_dbpool_connections_bucketgaugeNumber of currently non-idling db connections
sql_dbpool_connections_idle_bucketgaugeNumber of currently idling db connections
sql_execution_time_seconds_buckethistogramSQL query execution time for whole queries during web operation
sql_errors_total_bucketcounterCounter of SQL errors
redis_command_execution_time_seconds_buckethistogramcommandRedis command execution time
kustos_enforce_execution_time_seconds_buckethistogramKustos enforce execution time
kustos_load_policy_execution_time_seconds_buckethistogramKustos load policy execution time