this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 50 lines 1.5 kB view raw
1resource "kubectl_manifest" "prometheus" { 2 server_side_apply = true 3 yaml_body = yamlencode({ 4 apiVersion = "argoproj.io/v1alpha1" 5 kind = "Application" 6 metadata = { 7 name = "prometheus" 8 namespace = helm_release.argocd.namespace 9 finalizers = ["resources-finalizer.argocd.argoproj.io"] 10 labels = local.common_labels 11 } 12 spec = { 13 project = "default" 14 destination = { 15 name = "in-cluster" 16 namespace = "monitoring" 17 } 18 syncPolicy = local.sync_policy 19 source = { 20 repoURL = "https://prometheus-community.github.io/helm-charts" 21 chart = "kube-prometheus-stack" 22 targetRevision = "75.15.1" 23 helm = { 24 valuesObject = { 25 grafana = { 26 additionalDataSources = [ 27 { 28 name = "Loki" 29 type = "loki" 30 url = "http://loki:3100" 31 }, 32 ] 33 enabled = false 34 forceDeployDashboards = true 35 forceDeployDatasources = true 36 } 37 prometheus = { 38 prometheusSpec = { 39 podMonitorSelectorNilUsesHelmValues = false 40 probeSelectorNilUsesHelmValues = false 41 ruleSelectorNilUsesHelmValues = false 42 serviceMonitorSelectorNilUsesHelmValues = false 43 } 44 } 45 } 46 } 47 } 48 } 49 }) 50}