remove python.d/rethinkdb (#18277)
Ilya Mashchenko committed
Aug 8, 2024 at 21:48 UTC
6d94a51a8015bb0e7c59630408bdec3acd9c49e7
7 files changed
+1
-738
CMakeLists.txt
-2
@@ -2793,7 +2793,6 @@ install(FILES
2793
src/collectors/python.d.plugin/openldap/openldap.conf
2794
src/collectors/python.d.plugin/oracledb/oracledb.conf
2795
src/collectors/python.d.plugin/pandas/pandas.conf
2796
- src/collectors/python.d.plugin/rethinkdbs/rethinkdbs.conf
2796
src/collectors/python.d.plugin/retroshare/retroshare.conf
2797
src/collectors/python.d.plugin/riakkv/riakkv.conf
2798
src/collectors/python.d.plugin/samba/samba.conf
@@ -2827,7 +2826,6 @@ install(FILES
2826
src/collectors/python.d.plugin/openldap/openldap.chart.py
2827
src/collectors/python.d.plugin/oracledb/oracledb.chart.py
2828
src/collectors/python.d.plugin/pandas/pandas.chart.py
2830
- src/collectors/python.d.plugin/rethinkdbs/rethinkdbs.chart.py
2829
src/collectors/python.d.plugin/retroshare/retroshare.chart.py
2830
src/collectors/python.d.plugin/riakkv/riakkv.chart.py
2831
src/collectors/python.d.plugin/samba/samba.chart.py
src/collectors/python.d.plugin/python.d.conf
+1
-1
@@ -44,7 +44,6 @@ go_expvar: no
44
# openldap: yes
45
# oracledb: yes
46
# pandas: yes
47
-# rethinkdbs: yes
47
# retroshare: yes
48
# riakkv: yes
49
# samba: yes
@@ -80,6 +79,7 @@ postfix: no # Removed (replaced with go.d/postfix).
79
postgres: no # Removed (replaced with go.d/postgres).
80
proxysql: no # Removed (replaced with go.d/proxysql).
81
redis: no # Removed (replaced with go.d/redis).
82
+rethinkdbs: no # Removed (replaced with go.d/rethinkdb).
83
sensors: no # Removed (replaced with go.d/sensors).
84
tomcat: no # Removed (replaced with go.d/tomcat)
85
puppet: no # Removed (replaced with go.d/puppet).
src/collectors/python.d.plugin/rethinkdbs/README.md
deleted
-1
@@ -1 +0,0 @@
1
-integrations/rethinkdb.md
\ No newline at end of file
src/collectors/python.d.plugin/rethinkdbs/integrations/rethinkdb.md
deleted
-223
@@ -1,223 +0,0 @@
1
-<!--startmeta
2
-custom_edit_url: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/rethinkdbs/README.md"
3
-meta_yaml: "https://github.com/netdata/netdata/edit/master/src/collectors/python.d.plugin/rethinkdbs/metadata.yaml"
4
-sidebar_label: "RethinkDB"
5
-learn_status: "Published"
6
-learn_rel_path: "Collecting Metrics/Databases"
7
-most_popular: False
8
-message: "DO NOT EDIT THIS FILE DIRECTLY, IT IS GENERATED BY THE COLLECTOR'S metadata.yaml FILE"
9
-endmeta-->
10
-
11
-# RethinkDB
12
-
13
-
14
-<img src="https://netdata.cloud/img/rethinkdb.png" width="150"/>
15
-
16
-
17
-Plugin: python.d.plugin
18
-Module: rethinkdbs
19
-
20
-<img src="https://img.shields.io/badge/maintained%20by-Netdata-%2300ab44" />
21
-
22
-## Overview
23
-
24
-This collector monitors metrics about RethinkDB clusters and database servers.
25
-
26
-It uses the `rethinkdb` python module to connect to a RethinkDB server instance and gather statistics.
27
-
28
-This collector is supported on all platforms.
29
-
30
-This collector supports collecting metrics from multiple instances of this integration, including remote instances.
31
-
32
-
33
-### Default Behavior
34
-
35
-#### Auto-Detection
36
-
37
-When no configuration file is found, the collector tries to connect to 127.0.0.1:28015.
38
-
39
-#### Limits
40
-
41
-The default configuration for this integration does not impose any limits on data collection.
42
-
43
-#### Performance Impact
44
-
45
-The default configuration for this integration is not expected to impose a significant performance impact on the system.
46
-
47
-
48
-## Metrics
49
-
50
-Metrics grouped by *scope*.
51
-
52
-The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
53
-
54
-
55
-
56
-### Per RethinkDB instance
57
-
58
-These metrics refer to the entire monitored application.
59
-
60
-This scope has no labels.
61
-
62
-Metrics:
63
-
64
-| Metric | Dimensions | Unit |
65
-|:------|:----------|:----|
66
-| rethinkdb.cluster_connected_servers | connected, missing | servers |
67
-| rethinkdb.cluster_clients_active | active | clients |
68
-| rethinkdb.cluster_queries | queries | queries/s |
69
-| rethinkdb.cluster_documents | reads, writes | documents/s |
70
-
71
-### Per database server
72
-
73
-
74
-
75
-This scope has no labels.
76
-
77
-Metrics:
78
-
79
-| Metric | Dimensions | Unit |
80
-|:------|:----------|:----|
81
-| rethinkdb.client_connections | connections | connections |
82
-| rethinkdb.clients_active | active | clients |
83
-| rethinkdb.queries | queries | queries/s |
84
-| rethinkdb.documents | reads, writes | documents/s |
85
-
86
-
87
-
88
-## Alerts
89
-
90
-There are no alerts configured by default for this integration.
91
-
92
-
93
-## Setup
94
-
95
-### Prerequisites
96
-
97
-#### Required python module
98
-
99
-The collector requires the `rethinkdb` python module to be installed.
100
-
101
-
102
-### Configuration
103
-
104
-#### File
105
-
106
-The configuration file name for this integration is `python.d/rethinkdbs.conf`.
107
-
108
-
109
-You can edit the configuration file using the `edit-config` script from the
110
-Netdata [config directory](/docs/netdata-agent/configuration/README.md#the-netdata-config-directory).
111
-
112
-```bash
113
-cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
114
-sudo ./edit-config python.d/rethinkdbs.conf
115
-```
116
-#### Options
117
-
118
-There are 2 sections:
119
-
120
-* Global variables
121
-* One or more JOBS that can define multiple different instances to monitor.
122
-
123
-The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
124
-
125
-Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
126
-
127
-Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
128
-
129
-
130
-<details open><summary>Config options</summary>
131
-
132
-| Name | Description | Default | Required |
133
-|:----|:-----------|:-------|:--------:|
134
-| update_every | Sets the default data collection frequency. | 5 | no |
135
-| priority | Controls the order of charts at the netdata dashboard. | 60000 | no |
136
-| autodetection_retry | Sets the job re-check interval in seconds. | 0 | no |
137
-| penalty | Indicates whether to apply penalty to update_every in case of failures. | yes | no |
138
-| name | Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works. | | no |
139
-| host | Hostname or ip of the RethinkDB server. | localhost | no |
140
-| port | Port to connect to the RethinkDB server. | 28015 | no |
141
-| user | The username to use to connect to the RethinkDB server. | admin | no |
142
-| password | The password to use to connect to the RethinkDB server. | | no |
143
-| timeout | Set a connect timeout to the RethinkDB server. | 2 | no |
144
-
145
-</details>
146
-
147
-#### Examples
148
-
149
-##### Local RethinkDB server
150
-
151
-An example of a configuration for a local RethinkDB server
152
-
153
-```yaml
154
-localhost:
155
- name: 'local'
156
- host: '127.0.0.1'
157
- port: 28015
158
- user: "user"
159
- password: "pass"
160
-
161
-```
162
-
163
-
164
-## Troubleshooting
165
-
166
-### Debug Mode
167
-
168
-To troubleshoot issues with the `rethinkdbs` collector, run the `python.d.plugin` with the debug option enabled. The output
169
-should give you clues as to why the collector isn't working.
170
-
171
-- Navigate to the `plugins.d` directory, usually at `/usr/libexec/netdata/plugins.d/`. If that's not the case on
172
- your system, open `netdata.conf` and look for the `plugins` setting under `[directories]`.
173
-
174
- ```bash
175
- cd /usr/libexec/netdata/plugins.d/
176
- ```
177
-
178
-- Switch to the `netdata` user.
179
-
180
- ```bash
181
- sudo -u netdata -s
182
- ```
183
-
184
-- Run the `python.d.plugin` to debug the collector:
185
-
186
- ```bash
187
- ./python.d.plugin rethinkdbs debug trace
188
- ```
189
-
190
-### Getting Logs
191
-
192
-If you're encountering problems with the `rethinkdbs` collector, follow these steps to retrieve logs and identify potential issues:
193
-
194
-- **Run the command** specific to your system (systemd, non-systemd, or Docker container).
195
-- **Examine the output** for any warnings or error messages that might indicate issues. These messages should provide clues about the root cause of the problem.
196
-
197
-#### System with systemd
198
-
199
-Use the following command to view logs generated since the last Netdata service restart:
200
-
201
-```bash
202
-journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep rethinkdbs
203
-```
204
-
205
-#### System without systemd
206
-
207
-Locate the collector log file, typically at `/var/log/netdata/collector.log`, and use `grep` to filter for collector's name:
208
-
209
-```bash
210
-grep rethinkdbs /var/log/netdata/collector.log
211
-```
212
-
213
-**Note**: This method shows logs from all restarts. Focus on the **latest entries** for troubleshooting current issues.
214
-
215
-#### Docker Container
216
-
217
-If your Netdata runs in a Docker container named "netdata" (replace if different), use this command:
218
-
219
-```bash
220
-docker logs netdata 2>&1 | grep rethinkdbs
221
-```
222
-
223
-
src/collectors/python.d.plugin/rethinkdbs/metadata.yaml
deleted
-188
@@ -1,188 +0,0 @@
1
-plugin_name: python.d.plugin
2
-modules:
3
- - meta:
4
- plugin_name: python.d.plugin
5
- module_name: rethinkdbs
6
- monitored_instance:
7
- name: RethinkDB
8
- link: 'https://rethinkdb.com/'
9
- categories:
10
- - data-collection.database-servers
11
- icon_filename: 'rethinkdb.png'
12
- related_resources:
13
- integrations:
14
- list: []
15
- info_provided_to_referring_integrations:
16
- description: ''
17
- keywords:
18
- - rethinkdb
19
- - database
20
- - db
21
- most_popular: false
22
- overview:
23
- data_collection:
24
- metrics_description: 'This collector monitors metrics about RethinkDB clusters and database servers.'
25
- method_description: 'It uses the `rethinkdb` python module to connect to a RethinkDB server instance and gather statistics.'
26
- supported_platforms:
27
- include: []
28
- exclude: []
29
- multi_instance: true
30
- additional_permissions:
31
- description: ''
32
- default_behavior:
33
- auto_detection:
34
- description: 'When no configuration file is found, the collector tries to connect to 127.0.0.1:28015.'
35
- limits:
36
- description: ''
37
- performance_impact:
38
- description: ''
39
- setup:
40
- prerequisites:
41
- list:
42
- - title: 'Required python module'
43
- description: 'The collector requires the `rethinkdb` python module to be installed.'
44
- configuration:
45
- file:
46
- name: python.d/rethinkdbs.conf
47
- options:
48
- description: |
49
- There are 2 sections:
50
-
51
- * Global variables
52
- * One or more JOBS that can define multiple different instances to monitor.
53
-
54
- The following options can be defined globally: priority, penalty, autodetection_retry, update_every, but can also be defined per JOB to override the global values.
55
-
56
- Additionally, the following collapsed table contains all the options that can be configured inside a JOB definition.
57
-
58
- Every configuration JOB starts with a `job_name` value which will appear in the dashboard, unless a `name` parameter is specified.
59
- folding:
60
- title: "Config options"
61
- enabled: true
62
- list:
63
- - name: update_every
64
- description: Sets the default data collection frequency.
65
- default_value: 5
66
- required: false
67
- - name: priority
68
- description: Controls the order of charts at the netdata dashboard.
69
- default_value: 60000
70
- required: false
71
- - name: autodetection_retry
72
- description: Sets the job re-check interval in seconds.
73
- default_value: 0
74
- required: false
75
- - name: penalty
76
- description: Indicates whether to apply penalty to update_every in case of failures.
77
- default_value: yes
78
- required: false
79
- - name: name
80
- description: Job name. This value will overwrite the `job_name` value. JOBS with the same name are mutually exclusive. Only one of them will be allowed running at any time. This allows autodetection to try several alternatives and pick the one that works.
81
- default_value: ''
82
- required: false
83
- - name: host
84
- description: Hostname or ip of the RethinkDB server.
85
- default_value: 'localhost'
86
- required: false
87
- - name: port
88
- description: Port to connect to the RethinkDB server.
89
- default_value: '28015'
90
- required: false
91
- - name: user
92
- description: The username to use to connect to the RethinkDB server.
93
- default_value: 'admin'
94
- required: false
95
- - name: password
96
- description: The password to use to connect to the RethinkDB server.
97
- default_value: ''
98
- required: false
99
- - name: timeout
100
- description: Set a connect timeout to the RethinkDB server.
101
- default_value: '2'
102
- required: false
103
- examples:
104
- folding:
105
- enabled: false
106
- title: "Config"
107
- list:
108
- - name: Local RethinkDB server
109
- description: An example of a configuration for a local RethinkDB server
110
- folding:
111
- enabled: false
112
- config: |
113
- localhost:
114
- name: 'local'
115
- host: '127.0.0.1'
116
- port: 28015
117
- user: "user"
118
- password: "pass"
119
- troubleshooting:
120
- problems:
121
- list: []
122
- alerts: []
123
- metrics:
124
- folding:
125
- title: Metrics
126
- enabled: false
127
- description: ""
128
- availability: []
129
- scopes:
130
- - name: global
131
- description: "These metrics refer to the entire monitored application."
132
- labels: []
133
- metrics:
134
- - name: rethinkdb.cluster_connected_servers
135
- description: Connected Servers
136
- unit: "servers"
137
- chart_type: stacked
138
- dimensions:
139
- - name: connected
140
- - name: missing
141
- - name: rethinkdb.cluster_clients_active
142
- description: Active Clients
143
- unit: "clients"
144
- chart_type: line
145
- dimensions:
146
- - name: active
147
- - name: rethinkdb.cluster_queries
148
- description: Queries
149
- unit: "queries/s"
150
- chart_type: line
151
- dimensions:
152
- - name: queries
153
- - name: rethinkdb.cluster_documents
154
- description: Documents
155
- unit: "documents/s"
156
- chart_type: line
157
- dimensions:
158
- - name: reads
159
- - name: writes
160
- - name: database server
161
- description: ""
162
- labels: []
163
- metrics:
164
- - name: rethinkdb.client_connections
165
- description: Client Connections
166
- unit: "connections"
167
- chart_type: line
168
- dimensions:
169
- - name: connections
170
- - name: rethinkdb.clients_active
171
- description: Active Clients
172
- unit: "clients"
173
- chart_type: line
174
- dimensions:
175
- - name: active
176
- - name: rethinkdb.queries
177
- description: Queries
178
- unit: "queries/s"
179
- chart_type: line
180
- dimensions:
181
- - name: queries
182
- - name: rethinkdb.documents
183
- description: Documents
184
- unit: "documents/s"
185
- chart_type: line
186
- dimensions:
187
- - name: reads
188
- - name: writes
src/collectors/python.d.plugin/rethinkdbs/rethinkdbs.chart.py
deleted
-247
@@ -1,247 +0,0 @@
1
-# -*- coding: utf-8 -*-
2
-# Description: rethinkdb netdata python.d module
3
-# Author: Ilya Mashchenko (ilyam8)
4
-# SPDX-License-Identifier: GPL-3.0-or-later
5
-
6
-try:
7
- import rethinkdb as rdb
8
-
9
- HAS_RETHINKDB = True
10
-except ImportError:
11
- HAS_RETHINKDB = False
12
-
13
-from bases.FrameworkServices.SimpleService import SimpleService
14
-
15
-ORDER = [
16
- 'cluster_connected_servers',
17
- 'cluster_clients_active',
18
- 'cluster_queries',
19
- 'cluster_documents',
20
-]
21
-
22
-
23
-def cluster_charts():
24
- return {
25
- 'cluster_connected_servers': {
26
- 'options': [None, 'Connected Servers', 'servers', 'cluster', 'rethinkdb.cluster_connected_servers',
27
- 'stacked'],
28
- 'lines': [
29
- ['cluster_servers_connected', 'connected'],
30
- ['cluster_servers_missing', 'missing'],
31
- ]
32
- },
33
- 'cluster_clients_active': {
34
- 'options': [None, 'Active Clients', 'clients', 'cluster', 'rethinkdb.cluster_clients_active',
35
- 'line'],
36
- 'lines': [
37
- ['cluster_clients_active', 'active'],
38
- ]
39
- },
40
- 'cluster_queries': {
41
- 'options': [None, 'Queries', 'queries/s', 'cluster', 'rethinkdb.cluster_queries', 'line'],
42
- 'lines': [
43
- ['cluster_queries_per_sec', 'queries'],
44
- ]
45
- },
46
- 'cluster_documents': {
47
- 'options': [None, 'Documents', 'documents/s', 'cluster', 'rethinkdb.cluster_documents', 'line'],
48
- 'lines': [
49
- ['cluster_read_docs_per_sec', 'reads'],
50
- ['cluster_written_docs_per_sec', 'writes'],
51
- ]
52
- },
53
- }
54
-
55
-
56
-def server_charts(n):
57
- o = [
58
- '{0}_client_connections'.format(n),
59
- '{0}_clients_active'.format(n),
60
- '{0}_queries'.format(n),
61
- '{0}_documents'.format(n),
62
- ]
63
- f = 'server {0}'.format(n)
64
-
65
- c = {
66
- o[0]: {
67
- 'options': [None, 'Client Connections', 'connections', f, 'rethinkdb.client_connections', 'line'],
68
- 'lines': [
69
- ['{0}_client_connections'.format(n), 'connections'],
70
- ]
71
- },
72
- o[1]: {
73
- 'options': [None, 'Active Clients', 'clients', f, 'rethinkdb.clients_active', 'line'],
74
- 'lines': [
75
- ['{0}_clients_active'.format(n), 'active'],
76
- ]
77
- },
78
- o[2]: {
79
- 'options': [None, 'Queries', 'queries/s', f, 'rethinkdb.queries', 'line'],
80
- 'lines': [
81
- ['{0}_queries_total'.format(n), 'queries', 'incremental'],
82
- ]
83
- },
84
- o[3]: {
85
- 'options': [None, 'Documents', 'documents/s', f, 'rethinkdb.documents', 'line'],
86
- 'lines': [
87
- ['{0}_read_docs_total'.format(n), 'reads', 'incremental'],
88
- ['{0}_written_docs_total'.format(n), 'writes', 'incremental'],
89
- ]
90
- },
91
- }
92
-
93
- return o, c
94
-
95
-
96
-class Cluster:
97
- def __init__(self, raw):
98
- self.raw = raw
99
-
100
- def data(self):
101
- qe = self.raw['query_engine']
102
-
103
- return {
104
- 'cluster_clients_active': qe['clients_active'],
105
- 'cluster_queries_per_sec': qe['queries_per_sec'],
106
- 'cluster_read_docs_per_sec': qe['read_docs_per_sec'],
107
- 'cluster_written_docs_per_sec': qe['written_docs_per_sec'],
108
- 'cluster_servers_connected': 0,
109
- 'cluster_servers_missing': 0,
110
- }
111
-
112
-
113
-class Server:
114
- def __init__(self, raw):
115
- self.name = raw['server']
116
- self.raw = raw
117
-
118
- def error(self):
119
- return self.raw.get('error')
120
-
121
- def data(self):
122
- qe = self.raw['query_engine']
123
-
124
- d = {
125
- 'client_connections': qe['client_connections'],
126
- 'clients_active': qe['clients_active'],
127
- 'queries_total': qe['queries_total'],
128
- 'read_docs_total': qe['read_docs_total'],
129
- 'written_docs_total': qe['written_docs_total'],
130
- }
131
-
132
- return dict(('{0}_{1}'.format(self.name, k), d[k]) for k in d)
133
-
134
-
135
-# https://pypi.org/project/rethinkdb/2.4.0/
136
-# rdb.RethinkDB() can be used as rdb drop in replacement.
137
-# https://github.com/rethinkdb/rethinkdb-python#quickstart
138
-def get_rethinkdb():
139
- if hasattr(rdb, 'RethinkDB'):
140
- return rdb.RethinkDB()
141
- return rdb
142
-
143
-
144
-class Service(SimpleService):
145
- def __init__(self, configuration=None, name=None):
146
- SimpleService.__init__(self, configuration=configuration, name=name)
147
- self.order = list(ORDER)
148
- self.definitions = cluster_charts()
149
- self.host = self.configuration.get('host', '127.0.0.1')
150
- self.port = self.configuration.get('port', 28015)
151
- self.user = self.configuration.get('user', 'admin')
152
- self.password = self.configuration.get('password')
153
- self.timeout = self.configuration.get('timeout', 2)
154
- self.rdb = None
155
- self.conn = None
156
- self.alive = True
157
-
158
- def check(self):
159
- if not HAS_RETHINKDB:
160
- self.error('"rethinkdb" module is needed to use rethinkdbs.py')
161
- return False
162
-
163
- self.debug("rethinkdb driver version {0}".format(rdb.__version__))
164
- self.rdb = get_rethinkdb()
165
-
166
- if not self.connect():
167
- return None
168
-
169
- stats = self.get_stats()
170
-
171
- if not stats:
172
- return None
173
-
174
- for v in stats[1:]:
175
- if get_id(v) == 'server':
176
- o, c = server_charts(v['server'])
177
- self.order.extend(o)
178
- self.definitions.update(c)
179
-
180
- return True
181
-
182
- def get_data(self):
183
- if not self.is_alive():
184
- return None
185
-
186
- stats = self.get_stats()
187
-
188
- if not stats:
189
- return None
190
-
191
- data = dict()
192
-
193
- # cluster
194
- data.update(Cluster(stats[0]).data())
195
-
196
- # servers
197
- for v in stats[1:]:
198
- if get_id(v) != 'server':
199
- continue
200
-
201
- s = Server(v)
202
-
203
- if s.error():
204
- data['cluster_servers_missing'] += 1
205
- else:
206
- data['cluster_servers_connected'] += 1
207
- data.update(s.data())
208
-
209
- return data
210
-
211
- def get_stats(self):
212
- try:
213
- return list(self.rdb.db('rethinkdb').table('stats').run(self.conn).items)
214
- except rdb.errors.ReqlError:
215
- self.alive = False
216
- return None
217
-
218
- def connect(self):
219
- try:
220
- self.conn = self.rdb.connect(
221
- host=self.host,
222
- port=self.port,
223
- user=self.user,
224
- password=self.password,
225
- timeout=self.timeout,
226
- )
227
- self.alive = True
228
- return True
229
- except rdb.errors.ReqlError as error:
230
- self.error('Connection to {0}:{1} failed: {2}'.format(self.host, self.port, error))
231
- return False
232
-
233
- def reconnect(self):
234
- # The connection is already closed after rdb.errors.ReqlError,
235
- # so we do not need to call conn.close()
236
- if self.connect():
237
- return True
238
- return False
239
-
240
- def is_alive(self):
241
- if not self.alive:
242
- return self.reconnect()
243
- return True
244
-
245
-
246
-def get_id(v):
247
- return v['id'][0]
src/collectors/python.d.plugin/rethinkdbs/rethinkdbs.conf
deleted
-76
@@ -1,76 +0,0 @@
1
-# netdata python.d.plugin configuration for rethinkdb
2
-#
3
-# This file is in YaML format. Generally the format is:
4
-#
5
-# name: value
6
-#
7
-# There are 2 sections:
8
-# - global variables
9
-# - one or more JOBS
10
-#
11
-# JOBS allow you to collect values from multiple sources.
12
-# Each source will have its own set of charts.
13
-#
14
-# JOB parameters have to be indented (using spaces only, example below).
15
-
16
-# ----------------------------------------------------------------------
17
-# Global Variables
18
-# These variables set the defaults for all JOBs, however each JOB
19
-# may define its own, overriding the defaults.
20
-
21
-# update_every sets the default data collection frequency.
22
-# If unset, the python.d.plugin default is used.
23
-# update_every: 1
24
-
25
-# priority controls the order of charts at the netdata dashboard.
26
-# Lower numbers move the charts towards the top of the page.
27
-# If unset, the default for python.d.plugin is used.
28
-# priority: 60000
29
-
30
-# penalty indicates whether to apply penalty to update_every in case of failures.
31
-# Penalty will increase every 5 failed updates in a row. Maximum penalty is 10 minutes.
32
-# penalty: yes
33
-
34
-# autodetection_retry sets the job re-check interval in seconds.
35
-# The job is not deleted if check fails.
36
-# Attempts to start the job are made once every autodetection_retry.
37
-# This feature is disabled by default.
38
-# autodetection_retry: 0
39
-
40
-# ----------------------------------------------------------------------
41
-# JOBS (data collection sources)
42
-#
43
-# The default JOBS share the same *name*. JOBS with the same name
44
-# are mutually exclusive. Only one of them will be allowed running at
45
-# any time. This allows autodetection to try several alternatives and
46
-# pick the one that works.
47
-#
48
-# Any number of jobs is supported.
49
-#
50
-# All python.d.plugin JOBS (for all its modules) support a set of
51
-# predefined parameters. These are:
52
-#
53
-# job_name:
54
-# name: myname # the JOB's name as it will appear at the
55
-# # dashboard (by default is the job_name)
56
-# # JOBs sharing a name are mutually exclusive
57
-# update_every: 1 # the JOB's data collection frequency
58
-# priority: 60000 # the JOB's order on the dashboard
59
-# penalty: yes # the JOB's penalty
60
-# autodetection_retry: 0 # the JOB's re-check interval in seconds
61
-#
62
-# Additionally to the above, rethinkdb also supports the following:
63
-#
64
-# host: IP or HOSTNAME # default is 'localhost'
65
-# port: PORT # default is 28015
66
-# user: USERNAME # default is 'admin'
67
-# password: PASSWORD # not set by default
68
-# timeout: TIMEOUT # default is 2
69
-
70
-# ----------------------------------------------------------------------
71
-# AUTO-DETECTION JOBS
72
-# only one of them will run (they have the same name)
73
-
74
-local:
75
- name: 'local'
76
- host: 'localhost'