Skip to content

Commit

Permalink
Update: typo and scrape configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
  • Loading branch information
nlamirault committed May 17, 2021
1 parent 245c5df commit 169d098
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions charts/speedtest-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ A Helm chart for Prometheus Speedtest exporter
| prometheus.monitor.additionalLabels | object | `{}` | |
| prometheus.monitor.enabled | bool | `false` | |
| prometheus.monitor.honorLabels | bool | `false` | |
| prometheus.monitor.interval | string | `"60m"` | |
| prometheus.monitor.namespace | string | `""` | |
| prometheus.monitor.scrapeTimeout | string | `"60s"` | |
| readOnlyRootFilesystem | bool | `true` | |
| replicas | int | `1` | |
| resources | object | `{}` | |
Expand Down
3 changes: 2 additions & 1 deletion charts/speedtest-exporter/ci/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#

additionalLabels:
prometheus: k8s
exporter: speedtest

additionalAnnotations:
Expand All @@ -19,5 +18,7 @@ resources:
prometheus:
monitor:
enabled: true
interval: 15m
scrapeTimeout: 60s
additionalLabels:
release: kube-prometheus-stack
2 changes: 1 addition & 1 deletion charts/speedtest-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ spec:
{{- end }}
ports:
- containerPort: 9090
name: https
name: http
protocol: TCP
livenessProbe:
httpGet:
Expand Down
2 changes: 1 addition & 1 deletion charts/speedtest-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
spec:
type: "{{ .Values.service.type }}"
ports:
- name: "http"
- name: http
protocol: TCP
port: {{ .Values.service.port }}
{{- if .Values.service.nodePort }}
Expand Down
8 changes: 2 additions & 6 deletions charts/speedtest-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ spec:
app: {{ template "speedtest-exporter.name" . }}
endpoints:
- port: http
interval: {{ .Values.prometheus.monitor.interval }}
scrapeTimeout: {{ .Values.prometheus.monitor.scrapeTimeout }}
{{- if .Values.prometheus.monitor.honorLabels }}
honorLabels: true
{{- end }}
{{ if .Values.prometheus.monitor.enabled }}
- port: metrics
{{- if .Values.prometheus.monitor.honorLabels }}
honorLabels: true
{{- end }}
{{ end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/speedtest-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ resources: {}
prometheus:
monitor:
enabled: false
interval: 60m
scrapeTimeout: 60s
additionalLabels: {}
# release: kube-prometheus-stack
namespace: ""
Expand Down

0 comments on commit 169d098

Please sign in to comment.