Skip to content

Commit

Permalink
alerts and rules optional (#640)
Browse files Browse the repository at this point in the history
  • Loading branch information
brainfair authored Jan 10, 2024
1 parent 2d59d82 commit 63772b5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 17 deletions.
2 changes: 1 addition & 1 deletion charts/kubernetes-mixin/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ keywords:
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.4.0
version: 1.5.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
33 changes: 17 additions & 16 deletions charts/kubernetes-mixin/README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
# kubernetes-mixin

![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.8.0](https://img.shields.io/badge/AppVersion-0.8.0-informational?style=flat-square)
![Version: 1.5.0](https://img.shields.io/badge/Version-1.5.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: master](https://img.shields.io/badge/AppVersion-master-informational?style=flat-square)

A Helm chart for Kubernetes Mixin

**Homepage:** <https://charts.portefaix.xyz>

## Maintainers

| Name | Email | Url |
| ---------- | ----------------------------- | --- |
| nlamirault | <nicolas.lamirault@gmail.com> | |
| Name | Email | Url |
| ---- | ------ | --- |
| nlamirault | <nicolas.lamirault@gmail.com> | |

## Source Code

- <https://github.com/nlamirault/portefaix-hub/tree/master/charts/kubernetes-mixin>
* <https://github.com/nlamirault/portefaix-hub/tree/master/charts/kubernetes-mixin>

## Values

| Key | Type | Default | Description |
| ------------------------ | ------ | -------------- | ------------------------------------------------------------------------ |
| additionalAnnotations | object | `{}` | Additional annotations to add to all resources |
| additionalLabels | object | `{}` | Additional labels to add to all resources |
| fullnameOverride | string | `""` | Provide a name to substitute for the full names of resources |
| grafana.folder | string | `"kubernetes"` | |
| monitor.additionalLabels | object | `{}` | Additional labels to add to resources managed by the Prometheus Operator |

---

Autogenerated from chart metadata using [helm-docs v1.11.0](https://github.com/norwoodj/helm-docs/releases/v1.11.0)
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| additionalAnnotations | object | `{}` | Additional annotations to add to all resources |
| additionalLabels | object | `{}` | Additional labels to add to all resources |
| fullnameOverride | string | `""` | Provide a name to substitute for the full names of resources |
| grafana.folder | string | `"kubernetes"` | |
| monitor.additionalLabels | object | `{}` | Additional labels to add to resources managed by the Prometheus Operator |
| prometheusRule.alerts.enabled | string | `"enable"` | Enable by default PrometheusRule creation for alerts |
| prometheusRule.rules.enabled | string | `"enable"` | Enable by default PrometheusRule creation for rules |

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.11.3](https://github.com/norwoodj/helm-docs/releases/v1.11.3)
2 changes: 2 additions & 0 deletions charts/kubernetes-mixin/templates/alerts.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.prometheusRule.alerts.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
Expand Down Expand Up @@ -771,3 +772,4 @@ spec:
for: 15m
labels:
severity: critical
{{- end }}
2 changes: 2 additions & 0 deletions charts/kubernetes-mixin/templates/rules.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if .Values.prometheusRule.rules.enabled }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
Expand Down Expand Up @@ -716,3 +717,4 @@ spec:
labels:
quantile: "0.5"
record: node_quantile:kubelet_pleg_relist_duration_seconds:histogram_quantile
{{- end }}
8 changes: 8 additions & 0 deletions charts/kubernetes-mixin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ monitor:
grafana:
# Grafana folder in which to store the dashboards
folder: kubernetes

prometheusRule:
alerts:
# prometheusRule.alerts.enabled -- Enable by default PrometheusRule creation for alerts
enabled: enable
rules:
# prometheusRule.rules.enabled -- Enable by default PrometheusRule creation for rules
enabled: enable

0 comments on commit 63772b5

Please sign in to comment.