Coverage for /builds/BuildGrid/buildgrid/buildgrid/server/metrics_names.py: 100.00%
70 statements
« prev ^ index » next coverage.py v7.4.1, created at 2024-10-04 17:48 +0000
« prev ^ index » next coverage.py v7.4.1, created at 2024-10-04 17:48 +0000
1# Copyright (C) 2020 Bloomberg LP
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# <http://www.apache.org/licenses/LICENSE-2.0>
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
15# flake8: noqa
16# fmt: off
17class METRIC:
18 class RPC:
19 DURATION = "rpc.duration.ms"
20 INPUT_BYTES = "rpc.input_bytes.count"
21 OUTPUT_BYTES = "rpc.output_bytes.count"
22 AUTH_DURATION = "rpc.auth.duration.ms"
24 class ACTION_CACHE:
25 INVALID_CACHE_COUNT = "action_cache.invalid_cache.count"
26 MIRRORED_MATCH_COUNT = "action_cache.mirrored_matches.count"
27 MIRRORED_MISMATCH_COUNT = "action_cache.mirrored_mismatches.count"
29 class CAS:
30 BLOBS_COUNT = "cas.blobs.count"
31 BLOBS_MISSING_COUNT = "cas.blobs_missing.count"
32 BLOBS_MISSING_PERCENT = "cas.blobs_missing.percent"
33 BLOB_BYTES = "cas.blob_bytes.count"
34 TREE_CACHE_HIT_COUNT = "cas.tree_cache_hit.count"
35 TREE_CACHE_MISS_COUNT = "cas.tree_cache_miss.count"
37 class STORAGE:
38 STAT_DURATION = "storage.stat.duration.ms"
39 BULK_STAT_DURATION = "storage.bulk_stat.duration.ms"
41 READ_DURATION = "storage.read.duration.ms"
42 BULK_READ_DURATION = "storage.bulk_read.duration.ms"
44 DELETE_DURATION = "storage.delete_blob.duration.ms"
45 BULK_DELETE_DURATION = "storage.bulk_delete.duration.ms"
46 DELETE_ERRORS_COUNT = "storage.delete_errors.count"
48 WRITE_DURATION = "storage.write.duration.ms"
49 BULK_WRITE_DURATION = "storage.bulk_write.duration.ms"
51 GET_TREE_DURATION = "storage.get_tree.duration.ms"
53 class WITH_CACHE:
54 CACHE_HIT_COUNT = "storage.with_cache.cache_hit.count"
55 CACHE_MISS_COUNT = "storage.with_cache.cache_miss.count"
56 CACHE_HIT_PERCENT = "storage.with_cache.cache_hit.percent"
58 class SQL_INDEX:
59 UPDATE_TIMESTAMP_DURATION = "storage.sql_index.update_timestamp.duration.ms"
60 SAVE_DIGESTS_DURATION = "storage.sql_index.save_digest.duration.ms"
61 SIZE_CALCULATION_DURATION = "storage.sql_index.size_calculation.duration.ms"
62 DELETE_N_BYTES_DURATION = "storage.sql_index.delete_n_bytes.duration.ms"
63 BULK_DELETE_INDEX_DURATION = "storage.sql_index.bulk_delete_index.duration.ms"
64 MARK_DELETED_DURATION = "storage.sql_index.mark_deleted.duration.ms"
65 PREMARKED_DELETED_COUNT = "storage.sql_index.premarked_deleted.count"
67 class REPLICATED:
68 REQUIRED_REPLICATION_COUNT = "storage.replicated.required_replication.count"
69 REPLICATION_COUNT = "storage.replicated.replication.count"
70 REPLICATION_ERROR_COUNT = "storage.replicated.replication.errors.count"
72 class CLEANUP:
73 DURATION = "cleanup.duration.ms"
74 BATCH_DURATION = "cleanup.batch.duration.ms"
75 BLOBS_DELETED_PER_SECOND = "cleanup.blobs_deleted.per_second"
76 BYTES_DELETED_PER_SECOND = "cleanup.bytes_deleted.per_second"
77 BYTES_DELETED_COUNT = "cleanup.bytes_deleted.count"
78 TOTAL_BYTES_COUNT = "cleanup.total_bytes.count"
79 LOW_WATERMARK_BYTES_COUNT = "cleanup.low_watermark_bytes.count"
80 HIGH_WATERMARK_BYTES_COUNT = "cleanup.high_watermark_bytes.count"
82 class SCHEDULER:
83 JOB_COUNT = "scheduler.jobs.count"
84 LEASE_COUNT = "scheduler.leases.count"
85 BOTS_COUNT = "scheduler.bots.count"
87 ASSIGNMENT_DURATION = "scheduler.assignment.duration.ms"
88 SYNCHRONIZE_DURATION = "scheduler.synchronize.duration.ms"
90 PRUNE_DURATION = "scheduler.prune.duration.ms"
91 PRUNE_COUNT = "scheduler.prune.count"
93 QUEUE_TIMEOUT_DURATION = "scheduler.queue_timeout.duration.ms"
94 QUEUE_TIMEOUT_COUNT = "scheduler.queue_timeout.count"
96 EXECUTION_TIMEOUT_DURATION = "scheduler.execution_timeout.duration.ms"
97 EXECUTION_TIMEOUT_COUNT = "scheduler.execution_timeout.count"
99 class CONNECTIONS:
100 CLIENT_COUNT = "connections.clients.count"
101 WORKER_COUNT = "connections.workers.count"
103 class JOB:
104 DURATION = "job.duration.ms"