Skip to content

Commit 2243862

Browse files
committed
fix: Change env var prefix and change service monitor port
1 parent 69f11a3 commit 2243862

File tree

5 files changed

+18
-6
lines changed

5 files changed

+18
-6
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ chmod+x ./celery-exporter
9191
./celery-exporter --broker-url=redis://redis.service.consul/1
9292
```
9393

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+
94106
###### Specifying optional broker transport options
95107

96108
While the default options may be fine for most cases,

charts/celery-exporter/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
- name: danihodovic
1414
- name: adinhodovic
1515

16-
version: 0.2.0
17-
appVersion: 0.3.0
16+
version: 0.3.0
17+
appVersion: 0.4.0

charts/celery-exporter/templates/servicemonitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ metadata:
1313
{{- end }}
1414
spec:
1515
endpoints:
16-
- port: metrics
16+
- port: http
1717
interval: {{ .Values.serviceMonitor.scrapeInterval }}
1818
{{- if .Values.serviceMonitor.honorLabels }}
1919
honorLabels: true

charts/celery-exporter/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ serviceAccount:
2424
name: ""
2525

2626
env: []
27-
# - name: CELERY_EXPORTER_BROKER_URL
27+
# - name: CE_BROKER_URL
2828
# value: <MY_BROKER_URL>
29-
# - name: CELERY_EXPORTER_BROKER_URL
29+
# - name: CE_BROKER_URL
3030
# valueFrom:
3131
# secretKeyRef:
3232
# name: MY_SECRET

cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
if __name__ == "__main__":
44
# pylint: disable=no-value-for-parameter,unexpected-keyword-arg
5-
cli(auto_envvar_prefix="CELERY_EXPORTER")
5+
cli(auto_envvar_prefix="CE")

0 commit comments

Comments
 (0)