Skip to main content

Metrics

The governance service provides the following Prometheus-compatible metrics for monitoring the data import process.

MetricDescriptionLabelsExample
jeap_governance_service_data_import_duration_seconds_countCounter tracking the total number of data import executions per data source connector. Use this to track how many times each import has been executed and monitor success/failure rates.• data_source_connector: Import connector type (ArchRepoSystemImport, ApiDocVersionImport, DatabaseSchemaVersionImport, RestApiRelationWithoutPactImport)
• success: Execution status (true, false)
jeap_governance_service_data_import_duration_seconds_count{data_source_connector="ApiDocVersionImport",success="true"} 2
jeap_governance_service_data_import_duration_seconds_sumSummary tracking the cumulative duration (in seconds) of all data import executions per data source connector. Use this to calculate average import durations (sum/count) and monitor performance trends over time.• data_source_connector: Import connector type (ArchRepoSystemImport, ApiDocVersionImport, DatabaseSchemaVersionImport, RestApiRelationWithoutPactImport)
• success: Execution status (true, false)
jeap_governance_service_data_import_duration_seconds_sum{data_source_connector="ApiDocVersionImport",success="true"} 0.748848553
jeap_governance_service_data_import_duration_seconds_maxGauge tracking the maximum observed duration (in seconds) for data import executions within the current observation window. Use this to identify performance outliers and detect import operations that take significantly longer than usual.• data_source_connector: Import connector type (ArchRepoSystemImport, ApiDocVersionImport, DatabaseSchemaVersionImport, RestApiRelationWithoutPactImport)
• success: Execution status (true, false)
jeap_governance_service_data_import_duration_seconds_max{data_source_connector="ArchRepoSystemImport",success="true"} 2.118972172
jeap_governance_service_data_import_last_run_from_minutesGauge indicating how many minutes have elapsed since the last successful data import execution (across all import connectors). Use this for alerting to detect when data imports have not run for an unexpectedly long time.Nonejeap_governance_service_data_import_last_run_from_minutes 4.0
jeap_governance_service_prometheus_queries_duration_seconds_countCounter The number of queries made to Prometheussee @Timed annotationjeap_governance_service_prometheus_queries_duration_seconds_count 97395.00
jeap_governance_service_prometheus_queries_duration_seconds_sumSummary The cumulative duration in seconds of the queries made to Prometheussee @Timed annotationjeap_governance_service_prometheus_queries_duration_seconds_sum 32431.0
jeap_governance_service_prometheus_queries_duration_seconds_maxGauge The maximum observed duration in seconds of a query made to Prometheussee @Timed annotationjeap_governance_service_prometheus_queries_duration_seconds_max 7.3
jeap_governance_service_scoring_seconds_countCounter The number of scoring runs executedsee @Timed annotationjeap_governance_service_scoring_seconds_count 97395.00
jeap_governance_service_scoring_seconds_sumSummary The cumulative duration in seconds of scoring runs executedsee @Timed annotationjeap_governance_service_scoring_seconds_sum 32431.0
jeap_governance_service_scoring_seconds_maxGauge The maximum observed duration in seconds of a scoring runsee @Timed annotationjeap_governance_service_scoring_seconds_count_max 7.3
jeap_governance_service_scoring_last_run_from_minutesGauge indicating how many minutes have elapsed since the last successful scoring execution. Use this for alerting to detect when scoring has not run for an unexpectedly long time.Nonejeap_governance_service_scoring_last_run_from_minutes 7.0
jeap_governance_service_report_data_systems_preparation_seconds_countCounter The number of docs API reads of the system index (GET /docs-api/systems)see @Timed annotationjeap_governance_service_report_data_systems_preparation_seconds_count 97395.00
jeap_governance_service_report_data_systems_preparation_seconds_sumSummary The cumulative duration in seconds of the docs API reads of the system indexsee @Timed annotationjeap_governance_service_report_data_systems_preparation_seconds_sum 32431.0
jeap_governance_service_report_data_systems_preparation_seconds_maxGauge The maximum observed duration in seconds of a docs API read of the system indexsee @Timed annotationjeap_governance_service_report_data_systems_preparation_seconds_max 7.3
jeap_governance_service_report_data_system_preparation_seconds_countCounter The number of docs API reads of a single system (GET /docs-api/systems/{system})see @Timed annotationjeap_governance_service_report_data_system_preparation_seconds_count 97395.00
jeap_governance_service_report_data_system_preparation_seconds_sumSummary The cumulative duration in seconds of the docs API reads of single systemssee @Timed annotationjeap_governance_service_report_data_system_preparation_seconds_sum 32431.0
jeap_governance_service_report_data_system_preparation_seconds_maxGauge The maximum observed duration in seconds of a docs API read of a single systemsee @Timed annotationjeap_governance_service_report_data_system_preparation_seconds_max 7.3
jeap_governance_service_report_data_rules_preparation_seconds_countCounter The number of docs API reads of the rule index (GET /docs-api/rules)see @Timed annotationjeap_governance_service_report_data_rules_preparation_seconds_count 97395.00
jeap_governance_service_report_data_rules_preparation_seconds_sumSummary The cumulative duration in seconds of the docs API reads of the rule indexsee @Timed annotationjeap_governance_service_report_data_rules_preparation_seconds_sum 32431.0
jeap_governance_service_report_data_rules_preparation_seconds_maxGauge The maximum observed duration in seconds of a docs API read of the rule indexsee @Timed annotationjeap_governance_service_report_data_rules_preparation_seconds_max 7.3
jeap_governance_service_report_data_rule_preparation_seconds_countCounter The number of docs API reads of a single rule (GET /docs-api/rules/{ruleId})see @Timed annotationjeap_governance_service_report_data_rule_preparation_seconds_count 97395.00
jeap_governance_service_report_data_rule_preparation_seconds_sumSummary The cumulative duration in seconds of the docs API reads of single rulessee @Timed annotationjeap_governance_service_report_data_rule_preparation_seconds_sum 32431.0
jeap_governance_service_report_data_rule_preparation_seconds_maxGauge The maximum observed duration in seconds of a docs API read of a single rulesee @Timed annotationjeap_governance_service_report_data_rule_preparation_seconds_max 7.3

Based on these metrics, consider setting up the following alerts:

  1. Import Failures:
rate(jeap_governance_service_data_import_duration_seconds_count{success="false"}[5m]) > 0
  1. Import Not Running:
jeap_governance_service_data_import_last_run_from_minutes > 120
  1. Slow Imports:
jeap_governance_service_data_import_duration_seconds_max > 300

See also​

  • Configuration — scheduling for the data import and scoring jobs.