62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
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
|