added deployment
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user