summaryrefslogtreecommitdiffstats
path: root/munin
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2020-12-20 18:56:02 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2020-12-20 18:56:02 (GMT)
commite1dda1cc35514e6a6cf5938390ddf81dbe49595a (patch)
tree09cdd8b21618fc9c4382175172c8e8064619d621 /munin
parent492e4738f4dcc507635183c120cfbbb510784c47 (diff)
downloadmisc-fred-e1dda1cc35514e6a6cf5938390ddf81dbe49595a.zip
misc-fred-e1dda1cc35514e6a6cf5938390ddf81dbe49595a.tar.gz
misc-fred-e1dda1cc35514e6a6cf5938390ddf81dbe49595a.tar.bz2
munin: remove database routing override (#49630)
Diffstat (limited to 'munin')
-rwxr-xr-xmunin/publik_count3
-rwxr-xr-xmunin/publik_count_3
2 files changed, 0 insertions, 6 deletions
diff --git a/munin/publik_count b/munin/publik_count
index 134e968..9d93fce 100755
--- a/munin/publik_count
+++ b/munin/publik_count
@@ -41,9 +41,6 @@ for tenant in os.listdir(base_dir):
for k, v in cfg['postgresql'].items():
if v and isinstance(v, basestring):
psql_cfg[k] = v
- if psql_cfg.get('host') == 'prod.saas.entrouvert.org.clusters.entrouvert.org':
- # override for routing
- psql_cfg['host'] = '10.0.0.10'
pgconn = psycopg2.connect(**psql_cfg)
cur = pgconn.cursor()
try:
diff --git a/munin/publik_count_ b/munin/publik_count_
index a95a9ba..9d0e918 100755
--- a/munin/publik_count_
+++ b/munin/publik_count_
@@ -39,9 +39,6 @@ for tenant_dir in os.listdir(base_dir):
for k, v in cfg['postgresql'].items():
if v and isinstance(v, basestring):
psql_cfg[k] = v
- if psql_cfg.get('host') == 'prod.saas.entrouvert.org.clusters.entrouvert.org':
- # override for routing
- psql_cfg['host'] = '10.0.0.10'
pgconn = psycopg2.connect(**psql_cfg)
cur = pgconn.cursor()
cur.execute('''SELECT COUNT(*) from wcs_all_forms WHERE status != 'draft' ''')