Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prometheus #217

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions argocd-managed/argocd-apps/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ argocdApps:
valuesFile: values-bruinsma.yaml
- name: velero
podSecurity: privileged
- name: prometheus
8 changes: 8 additions & 0 deletions argocd-managed/prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v2
name: prometheus-wrapper
type: application
version: 1.0.0
dependencies:
- name: prometheus-stack
version: 48.1.1
repository: "https://prometheus-community.github.io/helm-charts"
5 changes: 5 additions & 0 deletions argocd-managed/prometheus/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```shell
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm upgrade --install --atomic --force prometheus-operator-stack prometheus-community/kube-prometheus-stack -f values.yaml
```
14 changes: 14 additions & 0 deletions argocd-managed/prometheus/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: grafana
spec:
entryPoints:
- websecure
routes:
- match: Host(`grafana.ninoo.nl`)
kind: Rule
services:
- name: prometheus-operator-stack-grafana
port: 80
10 changes: 10 additions & 0 deletions argocd-managed/prometheus/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
name: kibana-credentials
namespace: prometheus-operator
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The namespace "prometheus" will be generated by the Argocd application
It's the default in the template

spec:
encryptedData:
KIBANA_PASSWORD: AgArDbrED9dbz6gdKwueG8MVL3BdA2we19WwMpWpuE+DTtj14fS47KLOwxuy3Y9w49pmouOKBIEEofEH7s2t46R8q1oZ+xSyVvLzUzNaeP0P4MGUh3wbugy2ul3ZcC4d4nQqOiAJHPdphOZxa9XBjEOPU7+u0bVMU1RWYN9/C9AUMrdft6h23jXYVjW75oUCbU94byLkaq+aDZrDBORG3Wk8OT6FXgCAUegd9ZGDJHedc/CIKRHvFTNZWyy0Oszv3v4J6yvHWIO/2WdaVmCO7y1myGXGMc1EiK9tMKyn9AOTg58lbeZE3kMLnwnnTcVVo2X1PUHP/KeuPULrC096SB/5ZGYaPS6bLznHeBpjrcWJY2xvBFP8VL8w/KB/ooiYr9O7D3a5yv0z45XDxnvucq3vMBYeZqx2WTIMOf3LLs8Xe3idc2nrypUb2D+fzkMUeQdr3PPaAUM4EEwnN9vaPZGY7jYHj9xY+8KhDEk+sUBKpoblGi52Xxf6J5og+vwxK/yVZIYBmyf/olLbLs7wvBcfdg1SVN9032yxh1a/uKmNmmaFZV7URlDJBm5lK7b8dRzLyTaVa2d84tsA28WJUquoNeEaElVSuuss0wSfi60GzpLB0Cg0KRs7nIHWnXYymZwHYU8JctSX74dVqRkldm9UZM1VrSsG1nB8jbeohOTs9qoA3vTHQwcvxpzy5S67r5Gl3bO4Py5q94WhXg==
KIBANA_USERNAME: AgAPhXLcs/ov8HU+p5lQMDE3DDUy7cXnvP8rm841uiTZkBJI8tKmirdDBM7Mm+XfzHO+9NWgAq9D/zcPRVqV49psQKBMwwic1k94uhQoMDXMUq/uoSrUkvLIhvhHnhWyYFnzsQGeSOFO4jVZ3N+Vj1gP4CJlH/0n5fYF6KVjQkdBPLvX17/DADGcjXllMJXk1HEli1aGJCOZjKw6LSSIHE+qLSs4Py2tBpIRbW+PjK7B4r2lFkn2Xeibn02AE2tOyaEA1tKkX/JNloetn9TUb01ONImvz0T3eOke9TeWroWdr00/tnopN3mqtgM3f3VFLIsOE4d7PjJF5RR8sj7XKN3ixMP7DleVPrHyRzl3bcLXAkEEAkpwqekQZ9Z4vChg/pjSXUp6E5Nx741miHi0jsuEvfYpIPxipe1y0MpgELS/Y0mO+t1UW9cC/TzQJHiKb+k4G3zymTvxk9eRYifgl9kugs0i6feoYxgJ76fWOOPEcOefZ0h9y8YW6SP2YBcMAnKZuPmFd275IxFSYcvgX+HvY476b4A/8jC8EmovvRivu8/xuFmupebrWGq/cMniholD4Kq8ev6tys887JiQOuNN0pKJ3mGIBhCHFJbtSH3Vq8E/DaHy76/AhgGFeWSFHYU5VWufvJp80D0xqciPzXDc3CCPFrXuzjGbFCmlYfR08SJubJqJ35ds08ndQVyZKY4qqeCKfw==
5 changes: 5 additions & 0 deletions argocd-managed/prometheus/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
grafana:
admin:
existingSecret: "kibana-credentials"
userKey: KIBANA_USERNAME
passwordKey: KIBANA_PASSWORD
Comment on lines +1 to +5
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To place values for a subchart you must place them under an object with the same name (or alias)

Suggested change
grafana:
admin:
existingSecret: "kibana-credentials"
userKey: KIBANA_USERNAME
passwordKey: KIBANA_PASSWORD
prometheus-stack:
grafana:
admin:
existingSecret: "kibana-credentials"
userKey: KIBANA_USERNAME
passwordKey: KIBANA_PASSWORD