break(monitoring): remove prometheus-stack and loki

This commit is contained in:
Sebastian Mark 2023-12-13 17:54:55 +01:00
parent 6c02d3e445
commit 3ebd843458
3 changed files with 0 additions and 1559 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,39 +0,0 @@
local app = import "../../_templates/argocd_app.libsonnet";
[
app + {
name:: "loki",
namespace:: "metrics",
chart:: "loki-stack",
repo:: "https://grafana.github.io/helm-charts",
version:: "2.9.*",
syncOptions:: ["CreateNamespace=true", "Force=true"],
values:: |||
loki:
isDefault: false
promtail:
extraScrapeConfigs:
- job_name: journal
journal:
path: /var/log/journal
max_age: 12h
labels:
job: systemd-journal
relabel_configs:
- source_labels:
- '__journal__systemd_unit'
target_label: 'unit'
- source_labels:
- '__journal__hostname'
target_label: 'hostname'
extraVolumes:
- name: journal
hostPath:
path: /var/log/journal
extraVolumeMounts:
- name: journal
mountPath: /var/log/journal
readOnly: true
|||
}
]

View file

@ -1,47 +0,0 @@
# see https://blog.ediri.io/kube-prometheus-stack-and-argocd-23-how-to-remove-a-workaround
local app = import "../../_templates/argocd_app.libsonnet";
local vars = {
"version": "55.3.1",
"namespace": "metrics"
};
[
app + {
name:: "prometheus-crds",
namespace:: vars.namespace,
path:: "charts/kube-prometheus-stack/charts/crds/crds",
repo:: "https://github.com/prometheus-community/helm-charts.git",
version:: "kube-prometheus-stack-" + vars.version,
syncOptions:: ["CreateNamespace=true", "Replace=true"],
sync_wave:: -1,
},
app + {
name:: "prometheus-grafana",
namespace: vars.namespace,
chart:: "kube-prometheus-stack",
repo:: "https://prometheus-community.github.io/helm-charts",
version:: vars.version,
skipCrds:: true,
values:: |||
fullnameOverride: prometheus-stack
kubeProxy:
enabled: false
kubeScheduler:
enabled: false
kubeControllerManager:
enabled: false
alertmanager:
enabled: false
prometheus:
prometheusSpec:
storageSpec:
volumeClaimTemplate:
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
|||
}
]