Skip to content

Commit 093a0a8

Browse files
committed
cassandra: proper indents, add recent latencies
1 parent 38ddf45 commit 093a0a8

File tree

1 file changed

+72
-68
lines changed

1 file changed

+72
-68
lines changed

templates/default/cassandra.yaml.erb

+72-68
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,79 @@
11
<% excluded_keys = ["host", "port", "user", "password", "name"] -%>
22
instances:
3-
<% @instances.each do |i| -%>
4-
- host: <%= i['server'] %>
5-
port: <%= i['port'] || 7199%>
6-
<% if i['user'] -%>
7-
user: <%= i['username'] %>
8-
<% end -%>
9-
<% if i['password'] -%>
10-
password: <%= i['password'] %>
11-
<% end -%>
12-
<% if i['instance'] -%>
13-
name: <%= i['instance'] %>
14-
<% end -%>
15-
<% (i.keys - excluded_keys).each do |key| -%>
16-
<%= key %>: <%= i[key] %>
17-
<% end -%>
3+
<% @instances.each do |i| -%>
4+
- host: <%= i['server'] %>
5+
port: <%= i['port'] || 7199%>
6+
<% if i['user'] -%>
7+
user: <%= i['username'] %>
188
<% end -%>
9+
<% if i['password'] -%>
10+
password: <%= i['password'] %>
11+
<% end -%>
12+
<% if i['instance'] -%>
13+
name: <%= i['instance'] %>
14+
<% end -%>
15+
<% (i.keys - excluded_keys).each do |key| -%>
16+
<%= key %>: <%= i[key] %>
17+
<% end -%>
18+
<% end -%>
1919

2020
# List of metrics to be collected by the integration
2121
# You should not have to modify this.
2222
init_config:
23-
conf:
24-
- include:
25-
domain: org.apache.cassandra.db
26-
attribute:
27-
- BloomFilterDiskSpaceUsed
28-
- BloomFilterFalsePositives
29-
- BloomFilterFalseRatio
30-
- Capacity
31-
- CompressionRatio
32-
- CompletedTasks
33-
- ExceptionCount
34-
- Hits
35-
- RecentHitRate
36-
- LiveDiskSpaceUsed
37-
- LiveSSTableCount
38-
- Load
39-
- MaxRowSize
40-
- MeanRowSize
41-
- MemtableColumnsCount
42-
- MemtableDataSize
43-
- MemtableSwitchCount
44-
- MinRowSize
45-
- ReadCount
46-
- Requests
47-
- Size
48-
- TotalDiskSpaceUsed
49-
- TotalReadLatencyMicros
50-
- TotalWriteLatencyMicros
51-
- UpdateInterval
52-
- WriteCount
53-
- PendingTasks
54-
exclude:
55-
keyspace: system
56-
attribute:
57-
- MinimumCompactionThreshold
58-
- MaximumCompactionThreshold
59-
- RowCacheKeysToSave
60-
- KeyCacheSavePeriodInSeconds
61-
- RowCacheSavePeriodInSeconds
62-
- PendingTasks
63-
- Scores
64-
- RpcTimeout
65-
- include:
66-
domain: org.apache.cassandra.internal
67-
attribute:
68-
- ActiveCount
69-
- CompletedTasks
70-
- CurrentlyBlockedTasks
71-
- TotalBlockedTasks
72-
- include:
73-
domain: org.apache.cassandra.net
74-
attribute:
75-
- TotalTimeouts
23+
conf:
24+
- include:
25+
domain: org.apache.cassandra.db
26+
attribute:
27+
- BloomFilterDiskSpaceUsed
28+
- BloomFilterFalsePositives
29+
- BloomFilterFalseRatio
30+
- Capacity
31+
- CompressionRatio
32+
- CompletedTasks
33+
- ExceptionCount
34+
- Hits
35+
- RecentHitRate
36+
- RowCacheRecentHitRate
37+
- KeyCacheRecentHitRate
38+
- LiveDiskSpaceUsed
39+
- LiveSSTableCount
40+
- Load
41+
- MaxRowSize
42+
- MeanRowSize
43+
- MemtableColumnsCount
44+
- MemtableDataSize
45+
- MemtableSwitchCount
46+
- MinRowSize
47+
- ReadCount
48+
- RecentReadLatencyMicros
49+
- RecentWriteLatencyMicros
50+
- Requests
51+
- Size
52+
- TotalDiskSpaceUsed
53+
- TotalReadLatencyMicros
54+
- TotalWriteLatencyMicros
55+
- UpdateInterval
56+
- WriteCount
57+
- PendingTasks
58+
exclude:
59+
keyspace: system
60+
attribute:
61+
- MinimumCompactionThreshold
62+
- MaximumCompactionThreshold
63+
- RowCacheKeysToSave
64+
- KeyCacheSavePeriodInSeconds
65+
- RowCacheSavePeriodInSeconds
66+
- PendingTasks
67+
- Scores
68+
- RpcTimeout
69+
- include:
70+
domain: org.apache.cassandra.internal
71+
attribute:
72+
- ActiveCount
73+
- CompletedTasks
74+
- CurrentlyBlockedTasks
75+
- TotalBlockedTasks
76+
- include:
77+
domain: org.apache.cassandra.net
78+
attribute:
79+
- TotalTimeouts

0 commit comments

Comments
 (0)