-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Implement Karma dashboard (#221)
- Loading branch information
1 parent
ba8454c
commit fc57c5b
Showing
7 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
apiVersion: v2 | ||
name: karma | ||
description: A Helm chart for Karma - an UI for Prometheus Alertmanager | ||
|
||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
type: application | ||
|
||
# The chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
version: 2.9.3 | ||
appVersion: "v0.120" | ||
|
||
dependencies: | ||
- name: karma | ||
version: 2.9.3 | ||
repository: https://wiremind.github.io/wiremind-helm-charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# karma | ||
|
||
![Version: 2.9.3](https://img.shields.io/badge/Version-2.9.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.120](https://img.shields.io/badge/AppVersion-v0.120-informational?style=flat-square) | ||
|
||
A Helm chart for Karma - an UI for Prometheus Alertmanager | ||
|
||
## Requirements | ||
|
||
| Repository | Name | Version | | ||
|------------|------|---------| | ||
| https://wiremind.github.io/wiremind-helm-charts | karma | 2.9.3 | | ||
|
||
## Values | ||
|
||
| Key | Type | Default | Description | | ||
|-----|------|---------|-------------| | ||
| karma.env[0].name | string | `"ALERTMANAGER_URI"` | | | ||
| karma.env[0].value | string | `"http://prom-alertmanager.monitoring.svc:9093/"` | | | ||
| karma.ingress.enabled | bool | `true` | | | ||
| karma.ingress.hosts[0] | string | `"karma-dashboard.example.com"` | | | ||
| karma.ingress.path | string | `"/"` | | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
karma: | ||
env: | ||
# Specify the Alertmanager URI | ||
- name: ALERTMANAGER_URI | ||
value: "http://prom-alertmanager.monitoring.svc:9093/" | ||
ingress: | ||
enabled: true | ||
path: / | ||
# Specify the hostname for the ingress resource | ||
hosts: | ||
- "karma-dashboard.example.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{{- if and (index .Values "karma-dashboard") (index .Values "karma-dashboard" "enable") -}} | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: {{ .Values.destinationServer}}-karma-dashboard | ||
namespace: {{ .Values.argoNamespace | default "argocd" }} | ||
finalizers: | ||
- resources-finalizer.argocd.argoproj.io | ||
spec: | ||
project: {{ .Values.argoProject | default "default" }} | ||
source: | ||
repoURL: {{ .Values.repoUrl }} | ||
path: clusters/{{ .Values.clusterName }}/addons/karma-dashboard | ||
targetRevision: {{ .Values.targetRevision }} | ||
helm: | ||
releaseName: karma-dashboard | ||
destination: | ||
name: {{ .Values.destinationServer | default "in-cluster" }} | ||
namespace: monitoring | ||
syncPolicy: | ||
syncOptions: | ||
- CreateNamespace={{ (index .Values "karma-dashboard" "createNamespace") }} | ||
retry: | ||
limit: 1 | ||
backoff: | ||
duration: 5s | ||
factor: 2 | ||
maxDuration: 1m | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters