nginx_plus: order and charts must be unique for every job
lgz committed
Jan 19, 2018 at 17:09 UTC
792396b1ef0f913ef1ce1066a07ad9309c000c14
1 file changed
+3
-2
python.d/nginx_plus.chart.py
+3
-2
@@ -5,6 +5,7 @@
5
import re
6
7
from collections import defaultdict
8
+from copy import deepcopy
9
from json import loads
10
11
try:
@@ -423,8 +424,8 @@ class WebUpstreamPeer:
424
class Service(UrlService):
425
def __init__(self, configuration=None, name=None):
426
UrlService.__init__(self, configuration=configuration, name=name)
426
- self.order = ORDER
427
- self.definitions = CHARTS
427
+ self.order = list(ORDER)
428
+ self.definitions = deepcopy(CHARTS)
429
self.objects = dict()
430
431
def check(self):