Compare commits
2 Commits
main
...
kube-prome
Author | SHA1 | Date | |
---|---|---|---|
![]() |
3d4d467e28 | ||
![]() |
28b1c17e13 |
23
charts/user-monitoring-stack/.helmignore
Normal file
23
charts/user-monitoring-stack/.helmignore
Normal file
@ -0,0 +1,23 @@
|
||||
# Patterns to ignore when building packages.
|
||||
# This supports shell glob matching, relative path matching, and
|
||||
# negation (prefixed with !). Only one pattern per line.
|
||||
.DS_Store
|
||||
# Common VCS dirs
|
||||
.git/
|
||||
.gitignore
|
||||
.bzr/
|
||||
.bzrignore
|
||||
.hg/
|
||||
.hgignore
|
||||
.svn/
|
||||
# Common backup files
|
||||
*.swp
|
||||
*.bak
|
||||
*.tmp
|
||||
*.orig
|
||||
*~
|
||||
# Various IDEs
|
||||
.project
|
||||
.idea/
|
||||
*.tmproj
|
||||
.vscode/
|
6
charts/user-monitoring-stack/Chart.lock
Normal file
6
charts/user-monitoring-stack/Chart.lock
Normal file
@ -0,0 +1,6 @@
|
||||
dependencies:
|
||||
- name: kube-prometheus-stack
|
||||
repository: https://prometheus-community.github.io/helm-charts
|
||||
version: 51.5.3
|
||||
digest: sha256:8e25b83cde5acfd903c3e45f30b9ae28201f9dd68daab1aeca709f1185608916
|
||||
generated: "2023-10-12T13:25:38.219319684+02:00"
|
29
charts/user-monitoring-stack/Chart.yaml
Normal file
29
charts/user-monitoring-stack/Chart.yaml
Normal file
@ -0,0 +1,29 @@
|
||||
apiVersion: v2
|
||||
name: user-monitoring-stack
|
||||
description: A Helm chart for Kubernetes
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
# Application charts are a collection of templates that can be packaged into versioned archives
|
||||
# to be deployed.
|
||||
#
|
||||
# Library charts provide useful utilities or functions for the chart developer. They're included as
|
||||
# a dependency of application charts to inject those utilities and functions into the rendering
|
||||
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
|
||||
type: application
|
||||
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "1.16.0"
|
||||
dependencies:
|
||||
- name: kube-prometheus-stack
|
||||
condition: promstack.enabled
|
||||
version: "51.5.3"
|
||||
repository: "https://prometheus-community.github.io/helm-charts"
|
Binary file not shown.
73
charts/user-monitoring-stack/values.yaml
Normal file
73
charts/user-monitoring-stack/values.yaml
Normal file
@ -0,0 +1,73 @@
|
||||
promstack:
|
||||
enabled: true
|
||||
|
||||
kube-prometheus-stack:
|
||||
prometheus:
|
||||
enabled: true
|
||||
prometheusSpec:
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 400Mi
|
||||
scrapeInterval: 60s
|
||||
serviceMonitorNamespaceSelector:
|
||||
matchLabels:
|
||||
user: <user>
|
||||
serviceMonitorSelector: {}
|
||||
podMonitorNamespaceSelector:
|
||||
matchLabels:
|
||||
user: <user>
|
||||
podMonitorSelector: {}
|
||||
probeNamespaceSelector:
|
||||
matchLabels:
|
||||
user: <user>
|
||||
ruleSelectorNilUsesHelmValues: false
|
||||
serviceMonitorSelectorNilUsesHelmValues: false
|
||||
podMonitorSelectorNilUsesHelmValues: false
|
||||
probeSelectorNilUsesHelmValues: false
|
||||
serviceAccount:
|
||||
create: true
|
||||
name: "prometheus-<user>"
|
||||
grafana:
|
||||
enabled: false
|
||||
alertmanager:
|
||||
enabled: false
|
||||
|
||||
kubernetesServiceMonitors:
|
||||
enabled: false
|
||||
|
||||
|
||||
|
||||
# not relevant for the lab
|
||||
crds:
|
||||
enabled: false
|
||||
kubeProxy:
|
||||
enabled: false
|
||||
kubeScheduler:
|
||||
enabled: false
|
||||
kubeControllerManager:
|
||||
enabled: false
|
||||
kubeEtcd:
|
||||
enabled: false
|
||||
kubeApiServer:
|
||||
enabled: false
|
||||
kubelet:
|
||||
enabled: false
|
||||
coreDns:
|
||||
enabled: false
|
||||
kubeStateMetrics:
|
||||
enabled: false
|
||||
nodeExporter:
|
||||
enabled: false
|
||||
prometheusOperator:
|
||||
enabled: false
|
||||
kubeletService:
|
||||
enabled: false
|
||||
defaultRules:
|
||||
create: false
|
||||
|
||||
|
||||
global:
|
||||
rbac:
|
||||
create: false
|
||||
createAggregateClusterRoles: false
|
@ -26,6 +26,7 @@ spec:
|
||||
- --endpoint=prometheus-operated.{{ .Values.user }}-monitoring.svc.cluster.local:10901
|
||||
- --endpoint=thanos-ruler-operated.{{ .Values.user }}-monitoring.svc.cluster.local:10901
|
||||
- --endpoint=prometheus-operated.monitoring.svc.cluster.local:10901
|
||||
- --store=dnssrv+_grpc._tcp.kube-prometheus-stack-thanos-discovery.monitoring.svc.cluster.local
|
||||
- --store.unhealthy-timeout=3d
|
||||
image: quay.io/thanos/thanos:v0.25.1
|
||||
name: thanos-query
|
||||
|
Loading…
x
Reference in New Issue
Block a user