- Use "snake_case" names for custom Prometheus-metrics.

- Set next version.
- Update LICENSE.
This commit is contained in:
Lampros Smyrnaios 2025-01-18 23:42:23 +02:00
parent f7bc4a05fc
commit efde0c6914
4 changed files with 18 additions and 18 deletions

View File

@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2021-2024 OpenAIRE AMKE
Copyright 2021-2025 OpenAIRE AMKE
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

View File

@ -76,14 +76,14 @@ For managing and generating data, we use [**Impala**](https://impala.apache.org/
### Prometheus Metrics:
- "**numOfAllPayloads**"
- "**numOfPayloadsAggregatedByServiceThroughCrawling**"
- "**numOfPayloadsAggregatedByServiceThroughBulkImport**"
- "**numOfPayloadsAggregatedByService**"
- "**numOfLegacyPayloads**"
- "**numOfRecordsInspectedByServiceThroughCrawling**"
- "**averageFulltextsTransferSizeOfWorkerReports**"
- "**averageSuccessPercentageOfWorkerReports**"
- "**num_all_payloads**"
- "**num_payloads_aggregated_by_service_through_crawling**"
- "**num_payloads_aggregated_by_service_through_bulk_import**"
- "**num_payloads_aggregated_by_service**"
- "**num_legacy_payloads**"
- "**num_records_inspected_by_service_through_crawling**"
- "**average_fulltexts_transfer_size_of_worker_reports**"
- "**average_success_percentage_of_worker_reports**"
- "**getAssignments_time_seconds_max**": Time taken to return the assignments.
- "**addWorkerReport_time_seconds**": Time taken to add the WorkerReport.
<br>

View File

@ -11,7 +11,7 @@ ext {
java {
group = "${app_group}"
version = '2.9.0'
version = '2.9.1-SNAPSHOT'
sourceCompatibility = JavaVersion.VERSION_17 // For source code compatibility
targetCompatibility = JavaVersion.VERSION_17 // For bytecode compatibility

View File

@ -89,14 +89,14 @@ public class ScheduledTasks {
this.urlsController = urlsController;
jsonStringBuilder = new StringBuilder(assignmentsLimit * 500);
registry.gauge("numOfAllPayloads", numOfAllPayloads);
registry.gauge("numOfPayloadsAggregatedByServiceThroughCrawling", numOfPayloadsAggregatedByServiceThroughCrawling);
registry.gauge("numOfPayloadsAggregatedByServiceThroughBulkImport", numOfPayloadsAggregatedByServiceThroughBulkImport);
registry.gauge("numOfPayloadsAggregatedByService", numOfPayloadsAggregatedByService);
registry.gauge("numOfLegacyPayloads", numOfLegacyPayloads);
registry.gauge("numOfRecordsInspectedByServiceThroughCrawling", numOfRecordsInspectedByServiceThroughCrawling);
registry.gauge("averageFulltextsTransferSizeOfWorkerReports", averageFulltextsTransferSizeOfWorkerReports);
registry.gauge("averageSuccessPercentageOfWorkerReports", averageSuccessPercentageOfWorkerReports);
registry.gauge("num_all_payloads", numOfAllPayloads);
registry.gauge("num_payloads_aggregated_by_service_through_crawling", numOfPayloadsAggregatedByServiceThroughCrawling);
registry.gauge("num_payloads_aggregated_by_service_through_bulk_import", numOfPayloadsAggregatedByServiceThroughBulkImport);
registry.gauge("num_payloads_aggregated_by_service", numOfPayloadsAggregatedByService);
registry.gauge("num_legacy_payloads", numOfLegacyPayloads);
registry.gauge("num_records_inspected_by_service_through_crawling", numOfRecordsInspectedByServiceThroughCrawling);
registry.gauge("average_fulltexts_transfer_size_of_worker_reports", averageFulltextsTransferSizeOfWorkerReports);
registry.gauge("average_success_percentage_of_worker_reports", averageSuccessPercentageOfWorkerReports);
}