File tree 5 files changed +18
-6
lines changed
5 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,18 @@ chmod+x ./celery-exporter
91
91
./celery-exporter --broker-url=redis://redis.service.consul/1
92
92
```
93
93
94
+ ###### Kubernetes
95
+
96
+ There's a Helm in the directory ` charts/celery-exporter ` for deploying the Celery-exporter to Kubernetes using Helm.
97
+
98
+ ###### Environment variables
99
+
100
+ All arguments can be specified using environment variables with a ` CE_ ` prefix:
101
+
102
+ ``` sh
103
+ docker run -p 9808:9808 -e CE_BROKER_URL=redis://redis danihodovic/celery-exporter
104
+ ```
105
+
94
106
###### Specifying optional broker transport options
95
107
96
108
While the default options may be fine for most cases,
Original file line number Diff line number Diff line change @@ -13,5 +13,5 @@ maintainers:
13
13
- name : danihodovic
14
14
- name : adinhodovic
15
15
16
- version : 0.2 .0
17
- appVersion : 0.3 .0
16
+ version : 0.3 .0
17
+ appVersion : 0.4 .0
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ metadata:
13
13
{{- end }}
14
14
spec :
15
15
endpoints :
16
- - port : metrics
16
+ - port : http
17
17
interval : {{ .Values.serviceMonitor.scrapeInterval }}
18
18
{{- if .Values.serviceMonitor.honorLabels }}
19
19
honorLabels : true
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ serviceAccount:
24
24
name : " "
25
25
26
26
env : []
27
- # - name: CELERY_EXPORTER_BROKER_URL
27
+ # - name: CE_BROKER_URL
28
28
# value: <MY_BROKER_URL>
29
- # - name: CELERY_EXPORTER_BROKER_URL
29
+ # - name: CE_BROKER_URL
30
30
# valueFrom:
31
31
# secretKeyRef:
32
32
# name: MY_SECRET
Original file line number Diff line number Diff line change 2
2
3
3
if __name__ == "__main__" :
4
4
# pylint: disable=no-value-for-parameter,unexpected-keyword-arg
5
- cli (auto_envvar_prefix = "CELERY_EXPORTER " )
5
+ cli (auto_envvar_prefix = "CE " )
You can’t perform that action at this time.
0 commit comments