installer: include go.d.plugin version v0.15.0 (#7882)
* /web/giu/dashboard_info.js: add cockroachdb info * /web/giu/dashboard_info.js: lgtm fix * /health/health.d/: add cockroachdb.conf
Ilya Mashchenko committed
Jan 31, 2020 at 10:38 UTC
29d9b5e51603792ee27ef5a21f1de0ba8e130158
5 files changed
+292
-18
health/Makefile.am
+1
@@ -37,6 +37,7 @@ dist_healthconfig_DATA = \
37
health.d/ceph.conf \
38
health.d/cgroups.conf \
39
health.d/cpu.conf \
40
+ health.d/cockroachdb.conf \
41
health.d/couchdb.conf \
42
health.d/disks.conf \
43
health.d/dnsmasq_dhcp.conf \
health/health.d/cockroachdb.conf
new
+91
@@ -0,0 +1,91 @@
1
+
2
+# Availability
3
+
4
+template: cockroachdb_last_collected_secs
5
+ on: cockroachdb.live_nodes
6
+ calc: $now - $last_collected_t
7
+ units: seconds ago
8
+ every: 10s
9
+ warn: $this > (($status >= $WARNING) ? ($update_every) : ( 5 * $update_every))
10
+ crit: $this > (($status == $CRITICAL) ? ($update_every) : (60 * $update_every))
11
+ delay: down 5m multiplier 1.5 max 1h
12
+ info: number of seconds since the last successful data collection
13
+ to: dba
14
+
15
+# Capacity
16
+
17
+template: cockroachdb_used_storage_capacity
18
+ on: cockroachdb.storage_used_capacity_percentage
19
+ calc: $capacity_used_percent
20
+ units: %
21
+ every: 10s
22
+ warn: $this > (($status >= $WARNING) ? (80) : (85))
23
+ crit: $this > (($status == $CRITICAL) ? (85) : (95))
24
+ delay: down 15m multiplier 1.5 max 1h
25
+ info: entire disk usage percentage
26
+ to: dba
27
+
28
+template: cockroachdb_used_usable_storage_capacity
29
+ on: cockroachdb.storage_used_capacity_percentage
30
+ calc: $capacity_usable_used_percent
31
+ units: %
32
+ every: 10s
33
+ warn: $this > (($status >= $WARNING) ? (80) : (85))
34
+ crit: $this > (($status == $CRITICAL) ? (85) : (95))
35
+ delay: down 15m multiplier 1.5 max 1h
36
+ info: usable space usage percentage
37
+ to: dba
38
+
39
+# Replication
40
+
41
+template: cockroachdb_unavailable_ranges
42
+ on: cockroachdb.ranges_replication_problem
43
+ calc: $ranges_unavailable
44
+ units: num
45
+ every: 10s
46
+ warn: $this > 0
47
+ delay: down 15m multiplier 1.5 max 1h
48
+ info: number of ranges with fewer live replicas than the replication target
49
+ to: dba
50
+
51
+template: cockroachdb_replicas_leaders_not_leaseholders
52
+ on: cockroachdb.replicas_leaders
53
+ calc: $replicas_leaders_not_leaseholders
54
+ units: num
55
+ every: 10s
56
+ warn: $this > 0
57
+ delay: down 15m multiplier 1.5 max 1h
58
+ info: number of replicas that are Raft leaders whose range lease is held by another store
59
+ to: dba
60
+
61
+# FD
62
+
63
+template: cockroachdb_open_file_descriptors_limit
64
+ on: cockroachdb.process_file_descriptors
65
+ calc: $sys_fd_open/$sys_fd_softlimit * 100
66
+ units: %
67
+ every: 10s
68
+ warn: $this > 80
69
+ delay: down 15m multiplier 1.5 max 1h
70
+ info: open file descriptors usage percentage
71
+ to: dba
72
+
73
+# SQL
74
+
75
+template: cockroachdb_sql_active_connections
76
+ on: cockroachdb.sql_connections
77
+ calc: $sql_conns
78
+ units: active connections
79
+ every: 10s
80
+ info: number of active SQL connections
81
+ to: dba
82
+
83
+template: cockroachdb_sql_executed_statements_total_last_5m
84
+ on: cockroachdb.sql_statements_total
85
+ lookup: sum -5m absolute of sql_query_count
86
+ units: statements
87
+ every: 10s
88
+ warn: $this == 0 AND $cockroachdb_sql_active_connections != 0
89
+ delay: down 15m up 30s multiplier 1.5 max 1h
90
+ info: number of executed SQL statements in the last 5 minutes
91
+ to: dba
packaging/go.d.checksums
+16
-16
@@ -1,16 +1,16 @@
1
-f038852ab4c6fb1623384685a8d2b2d0ab85474d91303d8e6b3a670d0625f104 *config.tar.gz
2
-2087d74c4f18cd1d5f49f5e000e0cf2f63464930e9e1164e0b903268e7e85a9f *go.d.plugin-v0.14.1.darwin-386.tar.gz
3
-acd275d58c8ba448572b50b04b3faeefcd35be985a1155192ac77d0e383c5854 *go.d.plugin-v0.14.1.darwin-amd64.tar.gz
4
-b8da98b28dc5a048e9bb7d187c07df69bf631738ec540847b2c194e422f21ecc *go.d.plugin-v0.14.1.freebsd-386.tar.gz
5
-021ae15d077f3688704db91650542dfab284b5d7d3f21ff83d3ba398c7cc77af *go.d.plugin-v0.14.1.freebsd-amd64.tar.gz
6
-ea69f36e745d92b98e8a1bea118433954e1d6aea5af8923413857ca61da02b8a *go.d.plugin-v0.14.1.freebsd-arm.tar.gz
7
-6173c2c632ee01b911d8436c64e88df0dfff6360ff9f9662c560615557c78101 *go.d.plugin-v0.14.1.linux-386.tar.gz
8
-641d943355b31677c4cb6d445817a17317c4cb89cb173e5ecfa8567ebcef96ef *go.d.plugin-v0.14.1.linux-amd64.tar.gz
9
-2ec678203c5728444a8550ac5e378c74c434e5e0db6ae71dd5acc28b8ab45018 *go.d.plugin-v0.14.1.linux-arm.tar.gz
10
-b1070000c9b853d50cce0e644b8e4602ed0c6bcdf203a25678a6f9f6554dd4e1 *go.d.plugin-v0.14.1.linux-arm64.tar.gz
11
-c6e7574680a2281fdce764861197bb61dde5e0e6c0d24ab57bab5deb321e218d *go.d.plugin-v0.14.1.linux-mips.tar.gz
12
-b7bdd268e485d67a60670f432fd7dca9122abbbf25d4be4706406f4e9c0efaab *go.d.plugin-v0.14.1.linux-mips64.tar.gz
13
-dc865ffeb2cf07d89a38927bbce812b2407b0c2a84299c207c497dd77c3f9be9 *go.d.plugin-v0.14.1.linux-mips64le.tar.gz
14
-6b8d55742dfe9f4116edd2cbca670245a3e81344ffa50fb75885b841f85b7699 *go.d.plugin-v0.14.1.linux-mipsle.tar.gz
15
-830a6bb2028476568870d4a01725586c1799862a4eb0eb7a3bce9e2e617fb688 *go.d.plugin-v0.14.1.linux-ppc64.tar.gz
16
-985ee3f5e24cc6cba71723e7b6acd06e49f48280007f33174b557fa8dda6daef *go.d.plugin-v0.14.1.linux-ppc64le.tar.gz
1
+eac6cdc2f38986ba8605030b6ac41304b5f03e880fc9fea943ed034fc8f7490a *config.tar.gz
2
+7021f071689e4efa879d557f4a76c369e3a7b95c093913ba3c5429087e093258 *go.d.plugin-v0.15.0.darwin-386.tar.gz
3
+ac16155b37fd51c5d333e490b4e5b85e3388b3b42ae9bb5bc828f78aa1cbd58a *go.d.plugin-v0.15.0.darwin-amd64.tar.gz
4
+5d34e399ee75db0fce858a34038b3d645c8b5c80b26c346f6908117a738899ff *go.d.plugin-v0.15.0.freebsd-386.tar.gz
5
+d2ff775c11dcf8c90ab92e8d229a74980bb498513cc7411962cdc8056cb22eef *go.d.plugin-v0.15.0.freebsd-amd64.tar.gz
6
+3563424c41ca047786a9ef80ac25704d27d53e7b64b8252ce30d3b54b3d1638f *go.d.plugin-v0.15.0.freebsd-arm.tar.gz
7
+8e8e52bde2da6ce98fa902bad164152c53632fc7b1e1c9f689a89c0e5a87548f *go.d.plugin-v0.15.0.linux-386.tar.gz
8
+292546c3338b372441816be12e13f7fe6951281c2f03cff947d9bfb0cb39aeb2 *go.d.plugin-v0.15.0.linux-amd64.tar.gz
9
+ab5fb4d2f277255de31ca9330aacb67ebab2f10c398dc96f207eefefae1960ce *go.d.plugin-v0.15.0.linux-arm.tar.gz
10
+93ebd48c2b781fb42a26e21759885772d08e3ee2eea46b12e10681ff6c914de6 *go.d.plugin-v0.15.0.linux-arm64.tar.gz
11
+c83e8c758b116c13184314158ed5e7516fa4467a50e43b7d30bd466938e1a0c7 *go.d.plugin-v0.15.0.linux-mips.tar.gz
12
+7a036e6e74ac13b82a6baedf61208a6eae6dc1b57da50ad47b2fc5a376ef680a *go.d.plugin-v0.15.0.linux-mips64.tar.gz
13
+8f5a92bc4feac4ae44c0881e0de4490643fccc2d7e0867de437e0d08fc858256 *go.d.plugin-v0.15.0.linux-mips64le.tar.gz
14
+5a87a29f6a723d7bdc063e767c20c377cb8383edca96f36a3ed45d3434b7b157 *go.d.plugin-v0.15.0.linux-mipsle.tar.gz
15
+b67f5ed415c8f2109c916f655c60d2d61cb520623065bee770941bf8f40af1cc *go.d.plugin-v0.15.0.linux-ppc64.tar.gz
16
+69ab1728f6017e3e83db5971a6e57dabdb5b9190ae1d817ee9b010bc0a2995a0 *go.d.plugin-v0.15.0.linux-ppc64le.tar.gz
packaging/go.d.version
+1
-1
@@ -1 +1 @@
1
-v0.14.1
1
+v0.15.0
web/gui/dashboard_info.js
+183
-1
@@ -534,6 +534,12 @@ netdataDashboard.menu = {
534
title: 'Squid log',
535
icon: '<i class="fas fa-file-alt"></i>',
536
info: undefined
537
+ },
538
+
539
+ 'cockroachdb': {
540
+ title: 'CockroachDB',
541
+ icon: '<i class="fas fa-database"></i>',
542
+ info: 'Performance and health statistics for various <code>CockroachDB</code> components.'
543
}
544
545
};
@@ -2828,6 +2834,182 @@ netdataDashboard.context = {
2834
2835
'squidlog.mime_type_requests': {
2836
info: 'The content type of the object as seen in the HTTP reply header. Please note that ICP exchanges usually don\'t have any content type.'
2831
- }
2837
+ },
2838
+
2839
+ // ------------------------------------------------------------------------
2840
+ // CockroachDB
2841
+
2842
+ 'cockroachdb.process_cpu_time_combined_percentage': {
2843
+ info: 'Current combined cpu utilization, calculated as <code>(user+system)/num of logical cpus</code>.'
2844
+ },
2845
+
2846
+ 'cockroachdb.host_disk_bandwidth': {
2847
+ info: 'Summary disk bandwidth statistics across all system host disks.'
2848
+ },
2849
+
2850
+ 'cockroachdb.host_disk_operations': {
2851
+ info: 'Summary disk operations statistics across all system host disks.'
2852
+ },
2853
+
2854
+ 'cockroachdb.host_disk_iops_in_progress': {
2855
+ info: 'Summary disk iops in progress statistics across all system host disks.'
2856
+ },
2857
+
2858
+ 'cockroachdb.host_network_bandwidth': {
2859
+ info: 'Summary network bandwidth statistics across all system host network interfaces.'
2860
+ },
2861
+
2862
+ 'cockroachdb.host_network_packets': {
2863
+ info: 'Summary network packets statistics across all system host network interfaces.'
2864
+ },
2865
+
2866
+ 'cockroachdb.live_nodes': {
2867
+ info: 'Will be <code>0</code> if this node is not itself live.'
2868
+ },
2869
+
2870
+ 'cockroachdb.total_storage_capacity': {
2871
+ info: 'Entire disk capacity. It includes non-CR data, CR data, and empty space.'
2872
+ },
2873
+
2874
+ 'cockroachdb.storage_capacity_usability': {
2875
+ info: '<code>usable</code> is sum of empty space and CR data, <code>unusable</code> is space used by non-CR data.'
2876
+ },
2877
+
2878
+ 'cockroachdb.storage_usable_capacity': {
2879
+ info: 'Breakdown of <code>usable</code> space.'
2880
+ },
2881
+
2882
+ 'cockroachdb.storage_used_capacity_percentage': {
2883
+ info: '<code>total</code> is % of <b>total</b> space used, <code>usable</code> is % of <b>usable</b> space used.'
2884
+ },
2885
+
2886
+ 'cockroachdb.sql_bandwidth': {
2887
+ info: 'The total amount of SQL client network traffic.'
2888
+ },
2889
+
2890
+ 'cockroachdb.sql_errors': {
2891
+ info: '<code>statement</code> is statements resulting in a planning or runtime error, ' +
2892
+ '<code>transaction</code> is SQL transactions abort errors.'
2893
+ },
2894
+
2895
+ 'cockroachdb.sql_started_ddl_statements': {
2896
+ info: 'The amount of <b>started</b> DDL (Data Definition Language) statements. ' +
2897
+ 'This type means database schema changes. ' +
2898
+ 'It includes <code>CREATE</code>, <code>ALTER</code>, <code>DROP</code>, <code>RENAME</code>, <code>TRUNCATE</code> and <code>COMMENT</code> statements.'
2899
+ },
2900
+
2901
+ 'cockroachdb.sql_executed_ddl_statements': {
2902
+ info: 'The amount of <b>executed</b> DDL (Data Definition Language) statements. ' +
2903
+ 'This type means database schema changes. ' +
2904
+ 'It includes <code>CREATE</code>, <code>ALTER</code>, <code>DROP</code>, <code>RENAME</code>, <code>TRUNCATE</code> and <code>COMMENT</code> statements.'
2905
+ },
2906
+
2907
+ 'cockroachdb.sql_started_dml_statements': {
2908
+ info: 'The amount of <b>started</b> DML (Data Manipulation Language) statements.'
2909
+ },
2910
+
2911
+ 'cockroachdb.sql_executed_dml_statements': {
2912
+ info: 'The amount of <b>executed</b> DML (Data Manipulation Language) statements.'
2913
+ },
2914
+
2915
+ 'cockroachdb.sql_started_tcl_statements': {
2916
+ info: 'The amount of <b>started</b> TCL (Transaction Control Language) statements.'
2917
+ },
2918
+
2919
+ 'cockroachdb.sql_executed_tcl_statements': {
2920
+ info: 'The amount of <b>executed</b> TCL (Transaction Control Language) statements.'
2921
+ },
2922
+
2923
+ 'cockroachdb.live_bytes': {
2924
+ info: 'The amount of live data used by both applications and the CockroachDB system.'
2925
+ },
2926
+
2927
+ 'cockroachdb.kv_transactions': {
2928
+ info: 'KV transactions breakdown:<br>' +
2929
+ '<ul>' +
2930
+ ' <li><code>committed</code> committed KV transactions (including 1PC).</li>' +
2931
+ ' <li><code>fast-path_committed</code> KV transaction on-phase commit attempts.</li>' +
2932
+ ' <li><code>aborted</code> aborted KV transactions.</li>' +
2933
+ ' </ul>'
2934
+ },
2935
+
2936
+ 'cockroachdb.kv_transaction_restarts': {
2937
+ info: 'KV transactions restarts breakdown:<br>' +
2938
+ '<ul>' +
2939
+ ' <li><code>write too old</code> restarts due to a concurrent writer committing first.</li>' +
2940
+ ' <li><code>write too old (multiple)</code> restarts due to multiple concurrent writers committing first.</li>' +
2941
+ ' <li><code>forwarded timestamp (iso=serializable)</code> restarts due to a forwarded commit timestamp and isolation=SERIALIZABLE".</li>' +
2942
+ ' <li><code>possible replay</code> restarts due to possible replays of command batches at the storage layer.</li>' +
2943
+ ' <li><code>async consensus failure</code> restarts due to async consensus writes that failed to leave intents.</li>' +
2944
+ ' <li><code>read within uncertainty interval</code> restarts due to reading a new value within the uncertainty interval.</li>' +
2945
+ ' <li><code>aborted</code> restarts due to an abort by a concurrent transaction (usually due to deadlock).</li>' +
2946
+ ' <li><code>push failure</code> restarts due to a transaction push failure.</li>' +
2947
+ ' <li><code>unknown</code> restarts due to a unknown reasons.</li>' +
2948
+ ' </ul>'
2949
+ },
2950
+
2951
+ 'cockroachdb.ranges': {
2952
+ info: 'CockroachDB stores all user data (tables, indexes, etc.) and almost all system data in a giant sorted map of key-value pairs. ' +
2953
+ 'This keyspace is divided into "ranges", contiguous chunks of the keyspace, so that every key can always be found in a single range.'
2954
+ },
2955
+
2956
+ 'cockroachdb.ranges_replication_problem': {
2957
+ info: 'Ranges with not optimal number of replicas:<br>' +
2958
+ '<ul>' +
2959
+ ' <li><code>unavailable</code> ranges with fewer live replicas than needed for quorum.</li>' +
2960
+ ' <li><code>under replicated</code> ranges with fewer live replicas than the replication target.</li>' +
2961
+ ' <li><code>over replicated</code> ranges with more live replicas than the replication target.</li>' +
2962
+ ' </ul>'
2963
+ },
2964
+
2965
+ 'cockroachdb.replicas': {
2966
+ info: 'CockroachDB replicates each range (3 times by default) and stores each replica on a different node.'
2967
+ },
2968
+
2969
+ 'cockroachdb.replicas_leaders': {
2970
+ info: 'For each range, one of the replicas is the <code>leader</code> for write requests, <code>not leaseholders</code> is the number of Raft leaders whose range lease is held by another store.'
2971
+ },
2972
+
2973
+ 'cockroachdb.replicas_leaseholders': {
2974
+ info: 'For each range, one of the replicas holds the "range lease". This replica, referred to as the <code>leaseholder</code>, is the one that receives and coordinates all read and write requests for the range.'
2975
+ },
2976
+
2977
+ 'cockroachdb.queue_processing_failures': {
2978
+ info: 'Failed replicas breakdown by queue:<br>' +
2979
+ '<ul>' +
2980
+ ' <li><code>gc</code> replicas which failed processing in the GC queue.</li>' +
2981
+ ' <li><code>replica gc</code> replicas which failed processing in the replica GC queue.</li>' +
2982
+ ' <li><code>replication</code> replicas which failed processing in the replicate queue.</li>' +
2983
+ ' <li><code>split</code> replicas which failed processing in the split queue.</li>' +
2984
+ ' <li><code>consistency</code> replicas which failed processing in the consistency checker queue.</li>' +
2985
+ ' <li><code>raft log</code> replicas which failed processing in the Raft log queue.</li>' +
2986
+ ' <li><code>raft snapshot</code> replicas which failed processing in the Raft repair queue.</li>' +
2987
+ ' <li><code>time series maintenance</code> replicas which failed processing in the time series maintenance queue.</li>' +
2988
+ ' </ul>'
2989
+ },
2990
+
2991
+ 'cockroachdb.rebalancing_queries': {
2992
+ info: 'Number of kv-level requests received per second by the store, averaged over a large time period as used in rebalancing decisions.'
2993
+ },
2994
+
2995
+ 'cockroachdb.rebalancing_writes': {
2996
+ info: 'Number of keys written (i.e. applied by raft) per second to the store, averaged over a large time period as used in rebalancing decisions.'
2997
+ },
2998
+
2999
+ 'cockroachdb.slow_requests': {
3000
+ info: 'Requests that have been stuck for a long time.'
3001
+ },
3002
+
3003
+ 'cockroachdb.timeseries_samples': {
3004
+ info: 'The amount of metric samples written to disk.'
3005
+ },
3006
+
3007
+ 'cockroachdb.timeseries_write_errors': {
3008
+ info: 'The amount of errors encountered while attempting to write metrics to disk.'
3009
+ },
3010
+
3011
+ 'cockroachdb.timeseries_write_bytes': {
3012
+ info: 'Size of metric samples written to disk.'
3013
+ },
3014
3015
};