added deployment

This commit is contained in:
2025-12-16 08:34:20 +00:00
parent 988f6f9d1a
commit ad50051343
9 changed files with 297 additions and 24 deletions
@@ -0,0 +1,61 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: grafana-k8s-monitoring
namespace: "{argocd-namespace}"
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
name: ''
namespace: "{namespace}"
server: 'https://kubernetes.default.svc'
source:
path: ''
repoURL: 'https://grafana.github.io/helm-charts'
targetRevision: ''
chart: k8s-monitoring
helm:
valuesObject:
cluster:
name: "{cluster-name}"
destinations:
- name: grafana-cloud-metrics
type: prometheus
host: "{prometheus-url}/api/prom/push"
auth:
type: basic
username: "{prometheus-username}"
password: "{cloud-access-token}"
- name: grafana-cloud-logs
type: loki
host: "{loki-url}"
auth:
type: basic
username: "{loki-username}"
password: "{cloud-access-token}"
clusterMetrics:
enabled: true
kepler:
enabled: true
opencost:
enabled: true
metricsSource: grafana-cloud-metrics
opencost:
exporter:
defaultClusterId: "{cluster-name}"
prometheus:
existingSecretName: grafana-cloud-metrics-grafana-k8s-monitoring
external:
url: "{prometheus-url}/api/prom"
clusterEvents:
enabled: true
podLogs:
enabled: true
alloy-metrics:
enabled: true
alloy-singleton:
enabled: true
alloy-logs:
enabled: true
+14
View File
@@ -0,0 +1,14 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: prometheus
namespace: argocd
spec:
project: default
source:
repoURL: https://prometheus-community.github.io/helm-charts
targetRevision: 27.50.0
chart: kube-prometheus-stack
destination:
server: https://kubernetes.default.svc
namespace: prometheus