Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from hellofresh/feature/FUL-387-exclude-dbs-fr…
Browse files Browse the repository at this point in the history
…om-scraping

FUL-387 exclude dbs from scraping via kube-prometheus
  • Loading branch information
Andrei Savchuk authored Jul 22, 2021
2 parents c24173d + 727c970 commit cbffb88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@
ENVIRONMENT = os.getenv('ENVIRONMENT', 'staging')

# These dbinstances are scraped by rds-prom-exporter
# embedded into service's chart.
# embedded into service's chart.
# No need to scrape them via kube-prometheus.
BLACKLIST = [
"delivery-regions-db000-live",
"delivery-regions-db000-staging",
"subscriptions-query-service-db002-live",
"subscriptions-query-service-db002-staging",
"wms-adapter-service-db000-live",
"wms-adapter-service-db000-staging",
"distribution-center-dashboards-db000-live",
"distribution-center-dashboards-db000-staging",
]

client = boto3.client('rds', region_name=AWS_REGION)
Expand Down

0 comments on commit cbffb88

Please sign in to comment.