Skip to content
This repository was archived by the owner on Sep 7, 2019. It is now read-only.

Commit 9925da6

Browse files
committed
Fix names of custom histogram buckets environment variables
Big thanks to @AlexShein for discovering that typo!
1 parent 2956a3f commit 9925da6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

celery_prometheus_exporter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def get_histogram_buckets_from_evn(env_name):
4040
DEFAULT_ADDR = os.environ.get('DEFAULT_ADDR', '0.0.0.0:8888')
4141
DEFAULT_MAX_TASKS_IN_MEMORY = int(os.environ.get('DEFAULT_MAX_TASKS_IN_MEMORY',
4242
'10000'))
43-
RUNTIME_HISTOGRAM_BUCKETS = get_histogram_buckets_from_evn('RUNTIME_HISTOGRAM_BUCKET')
44-
LATENCY_HISTOGRAM_BUCKETS = get_histogram_buckets_from_evn('LATENCY_HISTOGRAM_BUCKET')
43+
RUNTIME_HISTOGRAM_BUCKETS = get_histogram_buckets_from_evn('RUNTIME_HISTOGRAM_BUCKETS')
44+
LATENCY_HISTOGRAM_BUCKETS = get_histogram_buckets_from_evn('LATENCY_HISTOGRAM_BUCKETS')
4545
DEFAULT_QUEUE_LIST = os.environ.get('QUEUE_LIST', [])
4646

4747
LOG_FORMAT = '[%(asctime)s] %(name)s:%(levelname)s: %(message)s'

0 commit comments

Comments
 (0)