Skip to content

Commit

Permalink
Merge pull request #76 from empathyco/chore/motive-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
jmsantorum authored Oct 15, 2024
2 parents 7fa83be + 4513089 commit 05454cb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion charts/motive-cache/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart for Kubernetes

type: application

version: 0.1.6
version: 0.1.7

appVersion: "1.0.0"
7 changes: 4 additions & 3 deletions charts/motive-cache/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# motive-cache

![Version: 0.1.6](https://img.shields.io/badge/Version-0.1.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)
![Version: 0.1.7](https://img.shields.io/badge/Version-0.1.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square)

A Helm chart for Kubernetes

Expand Down Expand Up @@ -31,17 +31,18 @@ A Helm chart for Kubernetes
| metrics.enabled | bool | See values.yaml | Enable and configure a Prometheus serviceMonitor for the chart under this key. |
| metrics.prometheusRule | object | See values.yaml | Enable and configure Prometheus Rules for the chart under this key. |
| metrics.prometheusRule.defaultAlerts | object | `{"extraLabels":{},"slackChannel":"","team":""}` | Configure default alerting rules |
| monitoring | object | `{"grafanaDashboard":{"datasourceName":"","enabled":false,"labels":{},"namespace":"","title":""},"prometheusServiceMonitor":{"enabled":false,"labels":{},"namespace":""}}` | The operator monitoring configuration object |
| monitoring | object | `{"grafanaDashboard":{"datasourceName":"","enabled":false,"labels":{},"namespace":"","title":""},"prometheusServiceMonitor":{"enabled":false,"labels":{},"namespace":"","scrapeInterval":"1m"}}` | The operator monitoring configuration object |
| monitoring.grafanaDashboard | object | `{"datasourceName":"","enabled":false,"labels":{},"namespace":"","title":""}` | A dashboard that can be installed along with the operator and used in grafana. Installed as a ConfigMap. |
| monitoring.grafanaDashboard.datasourceName | string | `""` | Name of the Grafana datasource the dashboard should use. (required) |
| monitoring.grafanaDashboard.enabled | bool | `false` | Enable or disable the ConfigMap installation. |
| monitoring.grafanaDashboard.labels | object | `{}` | ConfigMap labels. Can be used to for discovery by grafana. |
| monitoring.grafanaDashboard.namespace | string | `""` | Namespace that the ConfigMap with the dashboard should be installed to. Default to the namespace VarnishCluster is installed to |
| monitoring.grafanaDashboard.title | string | `""` | Title of the Grafana dashboard. Default: Varnish (<cluster namespace>/<name>) |
| monitoring.prometheusServiceMonitor | object | `{"enabled":false,"labels":{},"namespace":""}` | The Prometheus ServiceMonitor that is preconfigured to monitors the operator pods. |
| monitoring.prometheusServiceMonitor | object | `{"enabled":false,"labels":{},"namespace":"","scrapeInterval":"1m"}` | The Prometheus ServiceMonitor that is preconfigured to monitors the operator pods. |
| monitoring.prometheusServiceMonitor.enabled | bool | `false` | Enable or disable ServiceMontitor installation. |
| monitoring.prometheusServiceMonitor.labels | object | `{}` | ServiceMonitor labels that will be used by Prometheus instance to discover this ServiceMonitor. |
| monitoring.prometheusServiceMonitor.namespace | string | `""` | The namespace it should be installed to. Default to the namespace VarnishCluster is installed to |
| monitoring.prometheusServiceMonitor.scrapeInterval | string | `"1m"` | The interval at which Prometheus should scrape the metrics. Default: 1m |
| nameOverride | string | `""` | |
| nodeSelector | object | `{}` | Node selector to control where the Varnish pods should be scheduled |
| podAntiAffinity | string | `"hard"` | |
Expand Down
1 change: 1 addition & 0 deletions charts/motive-cache/templates/varnish-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
namespace: {{ .Values.monitoring.prometheusServiceMonitor.namespace | default .Release.Namespace }}
scrapeInterval: {{ .Values.monitoring.prometheusServiceMonitor.scrapeInterval | default "1m" }}
{{- end }}
{{- end }}

Expand Down
2 changes: 2 additions & 0 deletions charts/motive-cache/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ monitoring:
labels: {}
# -- The namespace it should be installed to. Default to the namespace VarnishCluster is installed to
namespace: ""
# -- The interval at which Prometheus should scrape the metrics. Default: 1m
scrapeInterval: "1m"

# -- Node selector to control where the Varnish pods should be scheduled
nodeSelector: {}
Expand Down

0 comments on commit 05454cb

Please sign in to comment.