Skip to content

Track metrics for creation and deletion events

Daniel Gerhardt requested to merge metrics-service into master

Event metrics are tracked for the following entity types:

  • UserProfile
  • Room
  • Content
  • Answer

Additional metrics for UserProfile events are tracked which are tagged with the auth provider type (account, guest, sso).

A metric for the count of survey votes has also been implemented but doesn't currently work because survey events (NewFeedbackEvent) are no longer published.

Example for app-specific Prometheus endpoint output:

# HELP arsnova_events_crud_total  
# TYPE arsnova_events_crud_total counter
arsnova_events_crud_total{entity_type="Content",event_type="deletion",} 2.0
arsnova_events_crud_total{entity_type="Answer",event_type="deletion",} 2.0
arsnova_events_crud_total{entity_type="UserProfile",event_type="deletion",} 0.0
arsnova_events_crud_total{entity_type="Answer",event_type="creation",} 2.0
arsnova_events_crud_total{entity_type="Room",event_type="deletion",} 1.0
arsnova_events_crud_total{entity_type="UserProfile",event_type="creation",} 1.0
arsnova_events_crud_total{entity_type="Room",event_type="creation",} 1.0
arsnova_events_crud_total{entity_type="Content",event_type="creation",} 2.0
# HELP arsnova_events_user_total  
# TYPE arsnova_events_user_total counter
arsnova_events_user_total{auth_provider_type="sso",event_type="deletion",} 0.0
arsnova_events_user_total{auth_provider_type="sso",event_type="creation",} 0.0
arsnova_events_user_total{auth_provider_type="guest",event_type="deletion",} 0.0
arsnova_events_user_total{auth_provider_type="account",event_type="deletion",} 0.0
arsnova_events_user_total{auth_provider_type="account",event_type="creation",} 0.0
arsnova_events_user_total{auth_provider_type="guest",event_type="creation",} 1.0
# HELP arsnova_events_survey_vote_total  
# TYPE arsnova_events_survey_vote_total counter
arsnova_events_survey_vote_total 0.0
Edited by Daniel Gerhardt

Merge request reports