Skip to content

Commit

Permalink
Extend ServiceMonitor (#9)
Browse files Browse the repository at this point in the history
* Update README.md

Add servicemonitor labels, add scrape interval.

* Extend values.yaml for ServiceMonitor

* Add interval to ServiceMonitor template

* Bump chart version.
  • Loading branch information
nvtkaszpir authored Mar 16, 2020
1 parent 9144bd9 commit 9c7f8fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ The following table lists the configurable parameters of the process exporter ch
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | |
| `serviceAccount.imagePullSecrets` | Specify image pull secrets | `[]` |
| `serviceMonitor.enabled` | if `true`, creates a Prometheus Operator ServiceMonitor | `false` |
| `serviceMonitor.labels` | Set of labels to apply on ServiceMonitor | `{}` |
| `serviceMonitor.interval` | Set custom metric scraping interval ServiceMonitor, must be string | `10s` |
| `securityContext` | SecurityContext | `{"runAsNonRoot": true, "runAsUser": 65534}` |
| `affinity` | A group of affinity scheduling rules for pod assignment | `{}` |
| `nodeSelector` | Node labels for pod assignment | `{}` |
Expand Down
2 changes: 1 addition & 1 deletion charts/prometheus-process-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.4.0"
description: A Helm chart for prometheus process-exporter
name: prometheus-process-exporter
version: 0.4.0
version: 0.4.1
home: https://github.com/mumoshu/prometheus-process-exporter
sources:
- https://github.com/ncabatoff/process-exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
{{- end }}
spec:
endpoints:
- interval: 10s
- interval: "{{ .Values.serviceMonitor.interval }}"
honorLabels: true
port: metrics
path: /metrics
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-process-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ groups:
## Creates a Prometheus Operator ServiceMonitor
serviceMonitor:
enabled: false
interval: "10s"
labels: {}

service:
type: ClusterIP
Expand Down

0 comments on commit 9c7f8fd

Please sign in to comment.