• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2019 The Android Open Source Project
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.
14
15STACKDRIVER_METRICS = {
16    'ci_job_queue_len': {
17        'name': 'ci_job_queue_len',
18        'displayName': 'ci_job_queue_len',
19        'description': 'Length of the CI jobs queue',
20        'type': 'custom.googleapis.com/perfetto-ci/ci_job_queue_len',
21        'metricKind': 'GAUGE',
22        'valueType': 'INT64',
23        'metadata': {
24            'samplePeriod': {
25                'seconds': 1
26            }
27        },
28        'labels': []
29    },
30    'ci_job_queue_time': {
31        'name': 'ci_job_queue_time',
32        'displayName': 'ci_job_queue_time',
33        'description': 'Queueing time of CI jobs, before they start running',
34        'type': 'custom.googleapis.com/perfetto-ci/ci_job_queue_time',
35        'metricKind': 'GAUGE',
36        'valueType': 'INT64',
37        'unit': 's',
38        'metadata': {
39            'samplePeriod': {
40                'seconds': 1
41            }
42        },
43        'labels': [{
44            'key': 'job_type',
45            'valueType': 'STRING'
46        }]
47    },
48    'ci_job_run_time': {
49        'name': 'ci_job_run_time',
50        'displayName': 'ci_job_run_time',
51        'description': 'Running time of CI jobs',
52        'type': 'custom.googleapis.com/perfetto-ci/ci_job_run_time',
53        'metricKind': 'GAUGE',
54        'valueType': 'INT64',
55        'unit': 's',
56        'metadata': {
57            'samplePeriod': {
58                'seconds': 1
59            }
60        },
61        'labels': [{
62            'key': 'job_type',
63            'valueType': 'STRING'
64        }]
65    },
66    'ci_cl_completion_time': {
67        'name': 'ci_cl_completion_time',
68        'displayName': 'ci_cl_completion_time',
69        'description': 'Time it takes for all jobs of a CL to complete',
70        'type': 'custom.googleapis.com/perfetto-ci/ci_cl_completion_time',
71        'metricKind': 'GAUGE',
72        'valueType': 'INT64',
73        'unit': 's',
74        'metadata': {
75            'samplePeriod': {
76                'seconds': 1
77            }
78        },
79        'labels': []
80    },
81}
82