Rename all_peers to show_peers
Sven Mäder committed
Feb 19, 2018 at 18:04 UTC
18717d961c874457ce96f0fac3b24866e9ee5aba
3 files changed
+5
-5
conf.d/python.d/ntpd.conf
+1
-1
@@ -58,7 +58,7 @@
58
#
59
# host: 'localhost' # the host to query
60
# port: '123' # the UDP port where `ntpd` listens
61
-# all_peers: no # use `yes` to show peer charts
61
+# show_peers: no # use `yes` to show peer charts
62
# peer_filter: '127\..*' # regex to exclude peers
63
# # by default local peers are hidden
64
# # use `''` to show all peers.
python.d/README.md
+2
-2
@@ -1521,7 +1521,7 @@ update_every: 10
1521
1522
host: 'localhost'
1523
port: '123'
1524
-all_peers: yes
1524
+show_peers: yes
1525
peer_filter: '(127\..*)|(192\.168\..*)'
1526
```
1527
@@ -1537,7 +1537,7 @@ otherhost:
1537
host: 'otherhost'
1538
```
1539
1540
-If no configuration is given, module will attempt to connect to `ntpd` on `::1:123` or `127.0.0.1:123` and show charts for the systemvars. Use `all_peers: yes` to also show the charts for configured peers. Local peers (127.*) are hidden by default, use `peer_filter: ''` to show all.
1540
+If no configuration is given, module will attempt to connect to `ntpd` on `::1:123` or `127.0.0.1:123` and show charts for the systemvars. Use `show_peers: yes` to also show the charts for configured peers. Local peers (127.*) are hidden by default, use `peer_filter: ''` to show all.
1541
1542
---
1543
python.d/ntpd.chart.py
+2
-2
@@ -233,7 +233,7 @@ class Service(SocketService):
233
self.peers = dict()
234
self.request = str()
235
self.retries = 0
236
- self.all_peers = self.configuration.get('all_peers', False)
236
+ self.show_peers = self.configuration.get('show_peers', False)
237
238
peer_filter = self.configuration.get('peer_filter', r'127\..*')
239
try:
@@ -274,7 +274,7 @@ class Service(SocketService):
274
275
data.update(self.system.get_data(raw))
276
277
- if not self.all_peers:
277
+ if not self.show_peers:
278
return data
279
280
# TODO: run self.find_new_peers() every N runs?