Remove commented code, fix minor bug.
Facetoe committed
Oct 26, 2016 at 06:56 UTC
1d215289bb1f0f36d67df4d8f6c13b301a7e6052
1 file changed
-11
python.d/postgres.chart.py
-11
@@ -16,15 +16,6 @@ update_every = 1
16
priority = 90000
17
retries = 60
18
19
-# Default Config options.
20
-# {
21
-# 'database': None,
22
-# 'user': 'postgres',
23
-# 'password': None,
24
-# 'host': 'localhost',
25
-# 'port': 5432
26
-# }
27
-
19
ARCHIVE = """
20
SELECT
21
CAST(COUNT(*) AS INT) AS file_count,
@@ -249,10 +240,8 @@ class Service(SimpleService):
240
""")
241
self.is_superuser = cursor.fetchone()[0]
242
252
-
243
def _create_definitions(self):
244
for database_name in self.databases:
255
- self.databases.add(database_name)
245
for chart_template_name in list(CHARTS):
246
if chart_template_name.startswith('db_stat'):
247
self._add_database_stat_chart(chart_template_name, database_name)