Skip to content

Commit 8ca9e61

Browse files
committed
post-review: consistent string quoting in yaml
1 parent 4583e6b commit 8ca9e61

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ rules:
77
LoadedClassCount:
88
metric: jvm.classes.loaded
99
type: gauge
10-
unit: '{class}'
10+
unit: "{class}"
1111
desc: number of loaded classes
1212

1313
- bean: java.lang:type=GarbageCollector,name=*
1414
mapping:
1515
CollectionCount:
1616
metric: jvm.gc.collections.count
1717
type: counter
18-
unit: '{collection}'
18+
unit: "{collection}"
1919
desc: total number of collections that have occurred
2020
metricAttribute:
2121
name: param(name)
@@ -87,5 +87,5 @@ rules:
8787
mapping:
8888
ThreadCount:
8989
metric: jvm.threads.count
90-
unit: '{thread}'
90+
unit: "{thread}"
9191
desc: number of threads

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rules:
77
Value:
88
metric: solr.document.count
99
type: updowncounter
10-
unit: '{document}'
10+
unit: "{document}"
1111
desc: The total number of indexed documents.
1212
metricAttribute:
1313
core: param(dom2)
@@ -29,7 +29,7 @@ rules:
2929
Count:
3030
metric: solr.request.count
3131
type: counter
32-
unit: '{query}'
32+
unit: "{query}"
3333
desc: The number of queries made.
3434
metricAttribute:
3535
core: param(dom2)
@@ -43,7 +43,7 @@ rules:
4343
Mean:
4444
metric: solr.request.time.average
4545
type: gauge
46-
unit: 'ms'
46+
unit: "ms"
4747
desc: "The average time of a query, based on Solr's histogram configuration."
4848
metricAttribute:
4949
core: param(dom2)
@@ -57,7 +57,7 @@ rules:
5757
Count:
5858
metric: solr.request.error.count
5959
type: counter
60-
unit: '{query}'
60+
unit: "{query}"
6161
desc: The number of queries resulting in an error.
6262
metricAttribute:
6363
core: param(dom2)
@@ -71,7 +71,7 @@ rules:
7171
Count:
7272
metric: solr.request.timeout.count
7373
type: counter
74-
unit: '{query}'
74+
unit: "{query}"
7575
desc: The number of queries resulting in a timeout.
7676
metricAttribute:
7777
core: param(dom2)
@@ -87,24 +87,24 @@ rules:
8787
mapping:
8888
cumulative_evictions:
8989
metric: eviction.count
90-
unit: '{eviction}'
90+
unit: "{eviction}"
9191
desc: The number of evictions from a cache.
9292
cumulative_hits:
9393
metric: hit.count
94-
unit: '{hit}'
94+
unit: "{hit}"
9595
desc: The number of hits for a cache.
9696
cumulative_inserts:
9797
metric: insert.count
98-
unit: '{insert}'
98+
unit: "{insert}"
9999
desc: The number of inserts to a cache.
100100
cumulative_lookups:
101101
metric: lookup.count
102-
unit: '{lookup}'
102+
unit: "{lookup}"
103103
desc: The number of lookups to a cache.
104104
ramBytesUsed:
105105
type: updowncounter
106106
metric: size
107-
unit: 'By'
107+
unit: By
108108
desc: The size of the cache occupied in memory.
109109

110110

0 commit comments

Comments
 (0)