Metrics
The governance service provides the following Prometheus-compatible metrics for monitoring the data import process.
| Metric | Description | Labels | Example |
|---|---|---|---|
jeap_governance_service_data_import_duration_seconds_count | Counter 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_sum | Summary 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_max | Gauge 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_minutes | Gauge 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. | None | jeap_governance_service_data_import_last_run_from_minutes 4.0 |
jeap_governance_service_prometheus_queries_duration_seconds_count | Counter The number of queries made to Prometheus | see @Timed annotation | jeap_governance_service_prometheus_queries_duration_seconds_count 97395.00 |
jeap_governance_service_prometheus_queries_duration_seconds_sum | Summary The cumulative duration in seconds of the queries made to Prometheus | see @Timed annotation | jeap_governance_service_prometheus_queries_duration_seconds_sum 32431.0 |
jeap_governance_service_prometheus_queries_duration_seconds_max | Gauge The maximum observed duration in seconds of a query made to Prometheus | see @Timed annotation | jeap_governance_service_prometheus_queries_duration_seconds_max 7.3 |
jeap_governance_service_scoring_seconds_count | Counter The number of scoring runs executed | see @Timed annotation | jeap_governance_service_scoring_seconds_count 97395.00 |
jeap_governance_service_scoring_seconds_sum | Summary The cumulative duration in seconds of scoring runs executed | see @Timed annotation | jeap_governance_service_scoring_seconds_sum 32431.0 |
jeap_governance_service_scoring_seconds_max | Gauge The maximum observed duration in seconds of a scoring run | see @Timed annotation | jeap_governance_service_scoring_seconds_count_max 7.3 |
jeap_governance_service_scoring_last_run_from_minutes | Gauge 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. | None | jeap_governance_service_scoring_last_run_from_minutes 7.0 |
jeap_governance_service_report_data_systems_preparation_seconds_count | Counter The number of docs API reads of the system index (GET /docs-api/systems) | see @Timed annotation | jeap_governance_service_report_data_systems_preparation_seconds_count 97395.00 |
jeap_governance_service_report_data_systems_preparation_seconds_sum | Summary The cumulative duration in seconds of the docs API reads of the system index | see @Timed annotation | jeap_governance_service_report_data_systems_preparation_seconds_sum 32431.0 |
jeap_governance_service_report_data_systems_preparation_seconds_max | Gauge The maximum observed duration in seconds of a docs API read of the system index | see @Timed annotation | jeap_governance_service_report_data_systems_preparation_seconds_max 7.3 |
jeap_governance_service_report_data_system_preparation_seconds_count | Counter The number of docs API reads of a single system (GET /docs-api/systems/{system}) | see @Timed annotation | jeap_governance_service_report_data_system_preparation_seconds_count 97395.00 |
jeap_governance_service_report_data_system_preparation_seconds_sum | Summary The cumulative duration in seconds of the docs API reads of single systems | see @Timed annotation | jeap_governance_service_report_data_system_preparation_seconds_sum 32431.0 |
jeap_governance_service_report_data_system_preparation_seconds_max | Gauge The maximum observed duration in seconds of a docs API read of a single system | see @Timed annotation | jeap_governance_service_report_data_system_preparation_seconds_max 7.3 |
jeap_governance_service_report_data_rules_preparation_seconds_count | Counter The number of docs API reads of the rule index (GET /docs-api/rules) | see @Timed annotation | jeap_governance_service_report_data_rules_preparation_seconds_count 97395.00 |
jeap_governance_service_report_data_rules_preparation_seconds_sum | Summary The cumulative duration in seconds of the docs API reads of the rule index | see @Timed annotation | jeap_governance_service_report_data_rules_preparation_seconds_sum 32431.0 |
jeap_governance_service_report_data_rules_preparation_seconds_max | Gauge The maximum observed duration in seconds of a docs API read of the rule index | see @Timed annotation | jeap_governance_service_report_data_rules_preparation_seconds_max 7.3 |
jeap_governance_service_report_data_rule_preparation_seconds_count | Counter The number of docs API reads of a single rule (GET /docs-api/rules/{ruleId}) | see @Timed annotation | jeap_governance_service_report_data_rule_preparation_seconds_count 97395.00 |
jeap_governance_service_report_data_rule_preparation_seconds_sum | Summary The cumulative duration in seconds of the docs API reads of single rules | see @Timed annotation | jeap_governance_service_report_data_rule_preparation_seconds_sum 32431.0 |
jeap_governance_service_report_data_rule_preparation_seconds_max | Gauge The maximum observed duration in seconds of a docs API read of a single rule | see @Timed annotation | jeap_governance_service_report_data_rule_preparation_seconds_max 7.3 |
Recommended Alerts
Based on these metrics, consider setting up the following alerts:
- Import Failures:
rate(jeap_governance_service_data_import_duration_seconds_count{success="false"}[5m]) > 0
- Import Not Running:
jeap_governance_service_data_import_last_run_from_minutes > 120
- Slow Imports:
jeap_governance_service_data_import_duration_seconds_max > 300
See also
- Configuration — scheduling for the data import and scoring jobs.