forked from cisco-open/test-telemetry-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetric-definition.yaml
106 lines (105 loc) · 3.37 KB
/
metric-definition.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#
# Copyright 2022 AppDynamics Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
payloadFrequencySeconds: 60
payloadCount: 30
metrics:
- name: pods.allocatable
unit: "{pods}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [node]
- name: pod.restarts
unit: "{restarts}"
otelType: sum
aggregationTemporality: delta
valueFunction: 'arithmeticSequence(1, 0, "")'
isMonotonic: true
filteredReportingResources:
pod: ["k8s.cluster.name=cluster-skyrim"]
- name: cpu.allocatable
unit: "{cores}"
otelType: summary
valueFunction: 'arithmeticSequenceSummary(1, 2, "", 5)'
isDouble: true
quantiles: [ 0, 0.5, 0.75, 1 ]
reportingResources: [ node ]
- name: memory.usage
unit: "By"
otelType: summary
valueFunction: 'arithmeticSequenceSummary(1, 2, "", 5)'
quantiles: [ 0, 1 ]
filteredReportingResources:
pod: ["k8s.pod.status=Running", "k8s.cluster.name=cluster-skyrim"]
- name: system.filesystem.mountpoint.limit
unit: "By"
otelType: summary
valueFunction: 'arithmeticSequence(1, 2, "")'
quantiles: [0, 1]
reportingResources: [filesystem]
- name: replicas.ready
unit: "{replicas}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [managed_replicaset]
- name: resource_quota.storage.requests.usage
unit: By
otelType: summary
quantiles: [ 0, 0.5, 0.75, 1 ]
valueFunction: 'arithmeticSequenceSummary(1, 2, "", 3)'
reportingResources: [resource_quota]
- name: container.cpu.used.utilization
unit: "%"
otelType: histogram
aggregationTemporality: delta
valueFunction: 'arithmeticSequenceSummary(5, 2, "", 7)'
isDouble: true
bounds: [10, 30, 50, 70, 90]
reportingResources: [ container ]
- name: cpu.usage
unit: "{cores}"
otelType: summary
valueFunction: 'arithmeticSequenceSummary(1, 2, "", 5)'
isDouble: true
quantiles: [ 0, 0.5, 0.75, 1 ]
reportingResources: [ managed_replicaset ]
filteredReportingResources:
unmanaged_replicaset: ["k8s.workload.kind=unmanaged_replicaset"]
- name: calls_min
unit: "{calls}/min"
otelType: summary
valueFunction: 'logarithmicSequenceSummary(23, 2, "", 3)'
quantiles: [ 0, 0.5, 0.75, 1 ]
reportingResources: [ service, service_instance ]
- name: pods.unknown
unit: "{pods}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [ pod ]
- name: pods.running
unit: "{pods}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [ pod ]
- name: pods.pending
unit: "{pods}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [ pod ]
- name: pods.failed
unit: "{pods}"
otelType: gauge
valueFunction: 'arithmeticSequence(1, 2, "")'
reportingResources: [ pod ]