feat: add grafana dashboards (#18699)

**Description**
We really need to expand the metrics system, this adds some grafana
dashboards

**⚙️ Type of change**

- [x] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**
<!--
Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration
-->

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
This commit is contained in:
Kjeld Schouten
2024-02-27 17:52:56 +01:00
committed by GitHub
parent a3d64a7af6
commit ca4edb9ed1
19 changed files with 7863 additions and 30 deletions
+5 -6
View File
@@ -41,15 +41,14 @@ if [[ "$curr_chart" != "charts/operators/cloudnative-pg" ]]; then
echo "Done installing cloudnative-pg chart"
fi
if [[ "$curr_chart" != "charts/operators/grafana-agent-operator" ]]; then
echo "Installing Grafana-Agent-Operator chart"
TODO Enable later
helm install prometheus-operator oci://tccr.io/truecharts/grafana-agent-operator --namespace grafana-agent-operator --create-namespace --wait
if [[ "$curr_chart" != "charts/operators/prometheus-operator" ]]; then
echo "Installing prometheus-operator chart"
helm install prometheus-operator oci://tccr.io/truecharts/prometheus-operator --namespace prometheus-operator --create-namespace --wait
if [[ "$?" != "0" ]]; then
echo "Failed to install grafana-agent-operator chart"
echo "Failed to install prometheus-operator chart"
exit 1
fi
echo "Done installing grafana-agent-operator chart"
echo "Done installing prometheus-operator chart"
fi
if [[ "$curr_chart" != "charts/enterprise/traefik" ]]; then
+1 -1
View File
@@ -35,4 +35,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/dependency/memcached
- https://hub.docker.com/r/bitnami/memcached
type: application
version: 12.1.4
version: 12.2.0
File diff suppressed because it is too large Load Diff
+10
View File
@@ -12,5 +12,15 @@ service:
portal:
open:
enabled: false
configmap:
dashboard:
enabled: true
labels:
grafanadasboard: '1'
data:
memcached.json: >-
{{ .Files.Get "dashboard.json" | indent 8 }}
manifestManager:
enabled: false
+1 -1
View File
@@ -44,4 +44,4 @@ sources:
- https://hub.docker.com/r/spx01/blocky
- https://quay.io/oriedge/k8s_gateway
type: application
version: 13.1.3
version: 13.2.0
File diff suppressed because it is too large Load Diff
+15 -2
View File
@@ -296,11 +296,21 @@ k8sgateway:
options:
- name: tls_servername
value: cloudflare-dns.com
configmap:
dashboard:
enabled: true
labels:
grafanadasboard: '1'
data:
blocky.json: >-
{{ .Files.Get "dashboard.json" | indent 8 }}
metrics:
main:
# -- Enable and configure a Prometheus serviceMonitor for the chart under this key.
# @default -- See values.yaml
enabled: false
enabled: true
type: "servicemonitor"
endpoints:
- port: main
@@ -322,6 +332,9 @@ metrics:
# for: 5m
# labels:
# severity: critical
redis:
enabled: true
# CANNOT be defined in above yaml section
@@ -342,4 +355,4 @@ cnpg:
enabled: false
user: blocky
database: blocky
updated: true
+1 -1
View File
@@ -36,4 +36,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/enterprise/traefik
- https://github.com/truecharts/containers/tree/master/apps/traefik
type: application
version: 26.1.3
version: 26.2.0
File diff suppressed because it is too large Load Diff
+12 -1
View File
@@ -119,14 +119,25 @@ logs:
format: common
metrics:
main:
enabled: false
enabled: true
type: servicemonitor
endpoints:
- port: metrics
path: /metrics
targetSelector: metrics
globalArguments:
- "--global.checknewversion"
configmap:
dashboard:
enabled: true
labels:
grafanadasboard: '1'
data:
traefik.json: >-
{{ .Files.Get "dashboard.json" | indent 8 }}
##
# -- Additional arguments to be passed at Traefik's binary
# All available options available on https://docs.traefik.io/reference/static-configuration/cli/
+1 -1
View File
@@ -43,4 +43,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/operators/cert-manager
- https://github.com/truecharts/containers/tree/master/apps/alpine
type: application
version: 4.1.4
version: 4.1.5
File diff suppressed because it is too large Load Diff
+14 -13
View File
@@ -1,5 +1,5 @@
image:
repository: tccr.io/tccr/alpine
repository: tccr.io/tccr/scratch
pullPolicy: IfNotPresent
tag: latest@sha256:ade0065e19edaa4f6903d464ee70605111a48394536deb94f31b661264704558
@@ -21,22 +21,23 @@ portal:
operator:
register: true
configmap:
dashboard:
enabled: true
labels:
grafanadasboard: '1'
data:
cert-manager.json: >-
{{ .Files.Get "dashboard.json" | indent 8 }}
certmanager:
dns01RecursiveNameservers: "1.1.1.1:53,1.0.0.1:53"
dns01RecursiveNameserversOnly: false
installCRDs: true
enableCertificateOwnerRef: true
prometheus:
enabled: true
servicemonitor:
enabled: true
metrics:
main:
enabled: false
type: "podmonitor"
endpoints:
- port: main
interval: 5s
scrapeTimeout: 5s
path: /
honorLabels: false
manifestManager:
enabled: false
+1 -1
View File
@@ -43,4 +43,4 @@ sources:
- https://github.com/truecharts/charts/tree/master/charts/operators/cloudnative-pg
- https://github.com/truecharts/containers/tree/master/apps/alpine
type: application
version: 6.1.3
version: 6.2.0
+14 -2
View File
@@ -21,5 +21,17 @@ portal:
operator:
register: true
manifestManager:
enabled: false
cloudnative-pg:
monitoring:
# -- Specifies whether the monitoring should be enabled. Requires Prometheus Operator CRDs.
podMonitorEnabled: true
grafanaDashboard:
create: true
# -- Allows overriding the namespace where the ConfigMap will be created, defaulting to the same one as the Release.
namespace: ""
# -- The name of the ConfigMap containing the dashboard.
configMapName: "cnpg-grafana-dashboard"
# -- Label that ConfigMaps should have to be loaded as dashboards.
sidecarLabel: "grafana_dashboard"
# -- Label value that ConfigMaps should have to be loaded as dashboards.
sidecarLabelValue: "1"
+1 -1
View File
@@ -37,4 +37,4 @@ sources:
- https://ghcr.io/onedr0p/prowlarr-develop
- https://ghcr.io/onedr0p/exportarr
type: application
version: 15.2.1
version: 15.3.0
File diff suppressed because it is too large Load Diff
+8
View File
@@ -91,6 +91,14 @@ persistence:
exportarr:
mountPath: /config
readOnly: true
configmap:
dashboard:
enabled: true
labels:
grafanadasboard: '1'
data:
prowlarr.json: >-
{{ .Files.Get "dashboard.json" | indent 8 }}
metrics:
main:
enabled: true