Skip to content

Commit 0442b3a

Browse files
committed
changed by to By to match semconv
1 parent 241209c commit 0442b3a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jmx-metrics/src/main/resources/target-systems/hadoop.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
*/
1616

1717
def beanHadoopNameNodeFS = otel.mbean("Hadoop:service=NameNode,name=FSNamesystem")
18-
otel.instrument(beanHadoopNameNodeFS, "hadoop.name_node.capacity.usage", "The current used capacity across all data nodes reporting to the name node.", "by",
18+
otel.instrument(beanHadoopNameNodeFS, "hadoop.name_node.capacity.usage", "The current used capacity across all data nodes reporting to the name node.", "By",
1919
["node_name" : { mbean -> mbean.getProperty("tag.Hostname") }],
2020
"CapacityUsed", otel.&longUpDownCounterCallback)
21-
otel.instrument(beanHadoopNameNodeFS, "hadoop.name_node.capacity.limit", "The total capacity allotted to data nodes reporting to the name node.", "by",
21+
otel.instrument(beanHadoopNameNodeFS, "hadoop.name_node.capacity.limit", "The total capacity allotted to data nodes reporting to the name node.", "By",
2222
["node_name" : { mbean -> mbean.getProperty("tag.Hostname") }],
2323
"CapacityTotal", otel.&longUpDownCounterCallback)
2424
otel.instrument(beanHadoopNameNodeFS, "hadoop.name_node.block.count", "The total number of blocks on the name node.", "{block}",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ rules:
88
CapacityUsed:
99
metric: capacity.usage
1010
type: updowncounter
11-
unit: by
11+
unit: By
1212
desc: The current used capacity across all data nodes reporting to the name node.
1313
CapacityTotal:
1414
metric: capacity.limit
1515
type: updowncounter
16-
unit: by
16+
unit: By
1717
desc: The total capacity allotted to data nodes reporting to the name node.
1818
BlocksTotal:
1919
metric: block.count

0 commit comments

Comments
 (0)