Skip to content

Commit

Permalink
default polling interval update to 60s
Browse files Browse the repository at this point in the history
  • Loading branch information
pops-one committed Nov 11, 2023
1 parent a737928 commit fa29d0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AppMetrics:
application metrics into Prometheus metrics.
"""

def __init__(self, polling_interval_seconds=15, walletconfig=False, logging=False):
def __init__(self, polling_interval_seconds=60, walletconfig=False, logging=False):
self.polling_interval_seconds = polling_interval_seconds

self.logging = logging
Expand Down Expand Up @@ -101,7 +101,7 @@ def main():

log.debug(f"Loading .env")
load_dotenv() # take environment variables from .env
polling_interval_seconds = int(os.getenv("POLLING_INTERVAL_SECONDS", "15"))
polling_interval_seconds = int(os.getenv("POLLING_INTERVAL_SECONDS", "60"))
exporter_port = int(os.getenv("EXPORTER_PORT", "9877"))

log.info("Wallet Exporter started and now listening on port " + str(exporter_port))
Expand Down

0 comments on commit fa29d0f

Please sign in to comment.