Skip to content

Commit 667bab0

Browse files
committed
Share common metric type
1 parent 8b17ac5 commit 667bab0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

jmx-scraper/src/main/resources/hadoop.yaml

+1-10
Original file line numberDiff line numberDiff line change
@@ -2,59 +2,50 @@
22
rules:
33
- bean: Hadoop:service=NameNode,name=FSNamesystem
44
prefix: hadoop.name_node.
5+
type: updowncounter
56
metricAttribute:
67
node_name: beanattr(tag\.Hostname)
78
mapping:
89
CapacityUsed:
910
metric: capacity.usage
10-
type: updowncounter
1111
unit: By
1212
desc: The current used capacity across all data nodes reporting to the name node.
1313
CapacityTotal:
1414
metric: capacity.limit
15-
type: updowncounter
1615
unit: By
1716
desc: The total capacity allotted to data nodes reporting to the name node.
1817
BlocksTotal:
1918
metric: block.count
20-
type: updowncounter
2119
unit: "{block}"
2220
desc: The total number of blocks on the name node.
2321
MissingBlocks:
2422
metric: block.missing
25-
type: updowncounter
2623
unit: "{block}"
2724
desc: The number of blocks reported as missing to the name node.
2825
CorruptBlocks:
2926
metric: block.corrupt
30-
type: updowncounter
3127
unit: "{block}"
3228
desc: The number of blocks reported as corrupt to the name node.
3329
VolumeFailuresTotal:
3430
metric: volume.failed
35-
type: updowncounter
3631
unit: "{volume}"
3732
desc: The number of failed volumes reported to the name node.
3833
FilesTotal:
3934
metric: file.count
40-
type: updowncounter
4135
unit: "{file}"
4236
desc: The total number of files being tracked by the name node.
4337
TotalLoad:
4438
metric: file.load
45-
type: updowncounter
4639
unit: "{operation}"
4740
desc: The current number of concurrent file accesses.
4841
NumLiveDataNodes:
4942
metric: &metric data_node.count
50-
type: updowncounter
5143
unit: &unit "{node}"
5244
desc: &desc The number of data nodes reporting to the name node.
5345
metricAttribute:
5446
state: const(live)
5547
NumDeadDataNodes:
5648
metric: *metric
57-
type: updowncounter
5849
unit: *unit
5950
desc: *desc
6051
metricAttribute:

0 commit comments

Comments
 (0)