Skip to content

Prometheus metrics #1472

@waj

Description

@waj

Add the following Prometheus metrics to the existing endpoint:

Respondent stats

This gauge can be collected on demand by selecting all the rows from respondent_stats table

surveda_respondents{
  survey_id,
  questionnaire_id,
  state,
  disposition,
  quota_bucket_id,
  mode
}

Polling

These must be counters incremented by the broker

surveda_survey_poll{survey_id}
surveda_broker_respondent_start{survey_id}

Verboice interactions

These must be counters incremented every time a call is enqueued in Verboice and status callback is received

surveda_verboice_enqueue{response_status}
surveda_verboice_status_callback{status}

Nuntium interactions

These counters are incremented every time a message is enqueued in Nuntium or an incoming message or a status callback is received

surveda_nuntium_enqueue{response_status}
surveda_nuntium_incoming{}
surveda_nuntium_status_callback{state}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions