Skip to content

Commit

Permalink
Additional examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sekka1 authored Mar 8, 2022
1 parent 485e625 commit 1ce1a49
Showing 1 changed file with 59 additions and 41 deletions.
100 changes: 59 additions & 41 deletions terraform-modules/aws/helm/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
@@ -1,52 +1,70 @@
---
namespaceOverride: monitoring
# prometheusOperator:
# nodeSelector:
# app-type: my-app
# tolerations:
# - key: "app-type"
# operator: "Equal"
# value: "my-app"
# effect: "NoSchedule"

# prometheus:
# prometheusSpec:
# nodeSelector:
# app-type: my-app
# tolerations:
# - key: "app-type"
# operator: "Equal"
# value: "my-app"
# effect: "NoSchedule"
# alertmanager:
# enabled: true
# alertmanagerSpec:
# nodeSelector:
# app-type: my-app
# tolerations:
# - key: "app-type"
# operator: "Equal"
# value: "my-app"
# effect: "NoSchedule"
# nodeExporter:
# nodeSelector:
# app-type: my-app
# tolerations:
# - key: "app-type"
# operator: "Equal"
# value: "my-app"
# effect: "NoSchedule"
# storageSpec:
# volumeClaimTemplate:
# spec:
# # storageClassName: gluster
# accessModes: ["ReadWriteOnce"]
# resources:
# requests:
# storage: 25Gi
# additionalScrapeConfigs:
# # Istio scrap endpoints
# # Doc: https://istio.io/latest/docs/ops/integrations/prometheus/#option-2-customized-scraping-configurations
# - job_name: 'istiod'
# kubernetes_sd_configs:
# - role: endpoints
# namespaces:
# names:
# - istio-system
# relabel_configs:
# - source_labels: [__meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
# action: keep
# regex: istiod;http-monitoring
# - job_name: 'envoy-stats'
# metrics_path: /stats/prometheus
# kubernetes_sd_configs:
# - role: pod

# relabel_configs:
# - source_labels: [__meta_kubernetes_pod_container_port_name]
# action: keep
# regex: '.*-envoy-prom'
# # End of istio scrape endpoints

grafana:
adminPassword: prom-operator
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: ingress-external
kubernetes.io/ingress.class: istio
hosts:
- grafana.kubernetes-ops.com
# nodeSelector:
# app-type: my-app
# tolerations:
# - key: "app-type"
# operator: "Equal"
# value: "my-app"
# effect: "NoSchedule"
tls:
- hosts:
- grafana.kubernetes-ops.com # This should match a DNS name in the Certificate
# secretName: domain-wildcard # This should match the Certificate secretName
additionalDataSources:
- name: loki
access: proxy
basicAuth: false
basicAuthPassword: pass
basicAuthUser: daco
editable: false
jsonData:
tlsSkipVerify: true
orgId: 1
type: loki
url: http://loki-stack:3100
version: 1

# Istio changes to not add the istio sidecar to the prometheus operator's addmission webhook patch
# https://github.com/prometheus-community/helm-charts/issues/479#issuecomment-752709725
prometheusOperator:
admissionWebhooks:
patch:
podAnnotations:
sidecar.istio.io/inject: "false"

0 comments on commit 1ce1a49

Please sign in to comment.