Skip to content

Commit

Permalink
Add endpoints to service monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Whyeasy committed Jul 2, 2020
1 parent 4d11e31 commit 5fcea0b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/jira-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: jira-exporter
description: A Helm chart to deploy [jira-exporter](https://github.com/Whyeasy/jira-exporter)
type: application
version: 0.1.2
version: 0.1.3
appVersion: 0.0.3
3 changes: 2 additions & 1 deletion charts/jira-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jira-exporter
=============
A Helm chart to deploy [jira-exporter](https://github.com/Whyeasy/jira-exporter)

Current chart version is `0.1.2`
Current chart version is `0.1.3`



Expand All @@ -28,6 +28,7 @@ Current chart version is `0.1.2`
| service.port | int | `8080` | Service port for the exporter |
| service.type | string | `"ClusterIP"` | Serive type for the exporter |
| serviceMonitor.enabled | bool | `false` | Deploy a service monitor along with the exporter. |
| serviceMonitor.endpoints | list | `[]` | Specify a list of Endpoint objects |
| serviceMonitor.interval | string | `""` | Set scraping interval for the service monitor. |
| serviceMonitor.scrapeTimeout | string | `""` | Set scraping time out for the service monitor. |
| strategy.type | string | `"RollingUpdate"` | Strategy for deploying containers |
Expand Down
4 changes: 4 additions & 0 deletions charts/jira-exporter/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ spec:
{{- if .Values.serviceMonitor.scrapeTimeout }}
scrapeTimeout: {{ .Values.serviceMonitor.scrapeTimeout }}
{{- end }}
{{- with .Values.serviceMonitor.endpoints }}
endpoints:
{{- toYaml . | nindent 6 }}
{{- end }}
selector:
matchLabels:
{{- include "jira-exporter.selectorLabels" . | nindent 6 }}
Expand Down
4 changes: 3 additions & 1 deletion charts/jira-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,6 @@ serviceMonitor:
# serviceMonitor.interval -- Set scraping interval for the service monitor.
interval: ""
# serviceMonitor.scrapeTimeout -- Set scraping time out for the service monitor.
scrapeTimeout: ""
scrapeTimeout: ""
# serviceMonitor.endpoints -- Specify a list of Endpoint objects
endpoints: []

0 comments on commit 5fcea0b

Please sign in to comment.