cleaner monitoring
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							| @@ -1,3 +1,6 @@ | |||||||
| [submodule "infrastructure/external-dns/octodns"] | [submodule "infrastructure/external-dns/octodns"] | ||||||
| 	path = infrastructure/external-dns/octodns | 	path = infrastructure/external-dns/octodns | ||||||
| 	url = ssh://git@git.kluster.moll.re:2222/remoll/dns.git | 	url = ssh://git@git.kluster.moll.re:2222/remoll/dns.git | ||||||
|  | [submodule "apps/monitoring/dashboards"] | ||||||
|  | 	path = apps/monitoring/dashboards | ||||||
|  | 	url = ssh://git@git.kluster.moll.re:2222/remoll/grafana-dashboards.git | ||||||
|   | |||||||
							
								
								
									
										1
									
								
								apps/monitoring/dashboards
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								apps/monitoring/dashboards
									
									
									
									
									
										Submodule
									
								
							 Submodule apps/monitoring/dashboards added at b1217c1e03
									
								
							
							
								
								
									
										17
									
								
								apps/monitoring/grafana-admin.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								apps/monitoring/grafana-admin.sealedsecret.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | --- | ||||||
|  | apiVersion: bitnami.com/v1alpha1 | ||||||
|  | kind: SealedSecret | ||||||
|  | metadata: | ||||||
|  |   creationTimestamp: null | ||||||
|  |   name: grafana-admin-secret | ||||||
|  |   namespace: monitoring | ||||||
|  | spec: | ||||||
|  |   encryptedData: | ||||||
|  |     password: AgBe8isrCWd5MuaQq5CpA+P3fDizCCDo23BVauaBJLuMRIYbVwpfahaJW7Ocj3LTXwdeVVPBrOk2D6vESUXu6I0EWc3y/NFN4ZezScxMcjmeaAb+z1zWwdH0FynTPJYOxv1fis1FDTkXDmGy3FXo5NDK9ET899TtulKFkh7UqSxd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Pxn2WWx6NOJambeziKB5OmSKvPsFofViyGBekVAWSWtt9yJe6lu5OKpBEiA6xhGhQ4ZryTXu9wvVALuPSIwBFITv85sIxjJb80qhJ51wb12QgzLLcPby0HSanyBI1M4jfsXWpK8gIAbDNO+eD7z3PhD9Y/5hPqYKXZ37Geyq23xiyxG8XDj6cL+Ie6k8XipayI4= | ||||||
|  |   template: | ||||||
|  |     metadata: | ||||||
|  |       creationTimestamp: null | ||||||
|  |       name: grafana-admin-secret | ||||||
|  |       namespace: monitoring | ||||||
|  |     type: Opaque | ||||||
| @@ -1,4 +1,3 @@ | |||||||
|  |  | ||||||
| replicas: 1 | replicas: 1 | ||||||
|  |  | ||||||
| ## Create a headless service for the deployment | ## Create a headless service for the deployment | ||||||
| @@ -10,13 +9,6 @@ headlessService: false | |||||||
| ## | ## | ||||||
| service: | service: | ||||||
|   enabled: true |   enabled: true | ||||||
|   type: ClusterIP |  | ||||||
|   port: 80 |  | ||||||
|   targetPort: 3000 |  | ||||||
|     # targetPort: 4181 To be used with a proxy extraContainer |  | ||||||
|   annotations: {} |  | ||||||
|   labels: {} |  | ||||||
|   portName: service |  | ||||||
|  |  | ||||||
| serviceMonitor: | serviceMonitor: | ||||||
|   ## If true, a ServiceMonitor CRD is created for a prometheus operator |   ## If true, a ServiceMonitor CRD is created for a prometheus operator | ||||||
| @@ -24,42 +16,38 @@ serviceMonitor: | |||||||
|   ## |   ## | ||||||
|   enabled: false |   enabled: false | ||||||
|  |  | ||||||
|  |  | ||||||
| ingress: | ingress: | ||||||
|   enabled: false |   enabled: false | ||||||
| persistence: |  | ||||||
|   type: pvc |  | ||||||
|   enabled: true |  | ||||||
|   # storageClassName: default |  | ||||||
|   accessModes: |  | ||||||
|     - ReadWriteOnce |  | ||||||
|   size: 10Gi |  | ||||||
|   # annotations: {} |  | ||||||
|   finalizers: |  | ||||||
|     - kubernetes.io/pvc-protection |  | ||||||
|   # selectorLabels: {} |  | ||||||
|   ## Sub-directory of the PV to mount. Can be templated. |  | ||||||
|   # subPath: "" |  | ||||||
|   ## Name of an existing PVC. Can be templated. |  | ||||||
|   existingClaim: grafana-nfs |  | ||||||
|  |  | ||||||
|   ## If persistence is not enabled, this allows to mount the | # credentials | ||||||
|   ## local storage in-memory to improve performance | admin: | ||||||
|   ## |   existingSecret: grafana-admin-secret | ||||||
|   inMemory: |   userKey: user | ||||||
|     enabled: false |   passwordKey: password | ||||||
|     ## The maximum usage on memory medium EmptyDir would be |  | ||||||
|     ## the minimum value between the SizeLimit specified |  | ||||||
|     ## here and the sum of memory limits of all containers in a pod |  | ||||||
|     ## |  | ||||||
|     # sizeLimit: 300Mi |  | ||||||
|  |  | ||||||
| initChownData: | datasources: | ||||||
|   ## If false, data ownership will not be reset at startup |   datasources.yaml: | ||||||
|   ## This allows the prometheus-server to be run with an arbitrary user |     apiVersion: 1 | ||||||
|   ## |     datasources: | ||||||
|   enabled: true |       - name: Thanos | ||||||
|  |         type: prometheus | ||||||
|  |         url: http://thanos-querier.prometheus.svc:9090 | ||||||
|  |         isDefault: true | ||||||
|  |  | ||||||
| # Administrator credentials when not using an existing secret (see below) | dashboardProviders: | ||||||
| adminUser: admin |   dashboardproviders.yaml: | ||||||
| # adminPassword: strongpassword |      | ||||||
|  | ## Reference to external ConfigMap per provider. Use provider name as key and ConfigMap name as value. | ||||||
|  | ## A provider dashboards must be defined either by external ConfigMaps or in values.yaml, not in both. | ||||||
|  | ## ConfigMap data example: | ||||||
|  | ## | ||||||
|  | ## data: | ||||||
|  | ##   example-dashboard.json: | | ||||||
|  | ##     RAW_JSON | ||||||
|  | ## | ||||||
|  | dashboardsConfigMaps: | ||||||
|  |   home-metrics: dashboard-home-metrics | ||||||
|  |   proxmox: dashboard-proxmox | ||||||
|  |   gitea: dashboard-gitea | ||||||
|  |  | ||||||
|  | #  default: "" | ||||||
| @@ -6,25 +6,27 @@ namespace: monitoring | |||||||
| resources:  | resources:  | ||||||
|   - namespace.yaml |   - namespace.yaml | ||||||
|   - grafana.pvc.yaml |   - grafana.pvc.yaml | ||||||
|   - influxdb.pvc.yaml |   # - influxdb.pvc.yaml | ||||||
|   - grafana.ingress.yaml |   - grafana.ingress.yaml | ||||||
|  |   - dashboards | ||||||
|  |   - grafana-admin.secret.yaml | ||||||
|  |  | ||||||
|  |  | ||||||
| helmCharts: | helmCharts: | ||||||
|   - releaseName: grafana |   - releaseName: grafana | ||||||
|     name: grafana |     name: grafana | ||||||
|     repo: https://grafana.github.io/helm-charts |     repo: https://grafana.github.io/helm-charts | ||||||
|     version: 7.3.0 |     version: 7.3.7 | ||||||
|     valuesFile: grafana.values.yaml |     valuesFile: grafana.values.yaml | ||||||
|  |  | ||||||
|   - releaseName: influxdb |   # - releaseName: influxdb | ||||||
|     name: influxdb2 |   #   name: influxdb2 | ||||||
|     repo: https://helm.influxdata.com/ |   #   repo: https://helm.influxdata.com/ | ||||||
|     version: 2.1.2 |   #   version: 2.1.2 | ||||||
|     valuesFile: influxdb.values.yaml |   #   valuesFile: influxdb.values.yaml | ||||||
|  |  | ||||||
|   - releaseName: telegraf-speedtest |   # - releaseName: telegraf-speedtest | ||||||
|     name: telegraf |   #   name: telegraf | ||||||
|     repo: https://helm.influxdata.com/ |   #   repo: https://helm.influxdata.com/ | ||||||
|     version: 1.8.39 |   #   version: 1.8.39 | ||||||
|     valuesFile: telegraf-speedtest.values.yaml |   #   valuesFile: telegraf-speedtest.values.yaml | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| apiVersion: kustomize.config.k8s.io/v1beta1 | apiVersion: kustomize.config.k8s.io/v1beta1 | ||||||
| kind: Kustomization | kind: Kustomization | ||||||
|  |  | ||||||
| namespace: monitoring | namespace: prometheus | ||||||
|  |  | ||||||
| resources:  | resources:  | ||||||
|   - namespace.yaml |   - namespace.yaml | ||||||
| @@ -13,6 +13,7 @@ resources: | |||||||
|   - thanos-store.statefulset.yaml |   - thanos-store.statefulset.yaml | ||||||
|   - thanos-query.deployment.yaml |   - thanos-query.deployment.yaml | ||||||
|  |  | ||||||
|  |  | ||||||
| images: | images: | ||||||
|   - name: thanos |   - name: thanos | ||||||
|     newName: quay.io/thanos/thanos |     newName: quay.io/thanos/thanos | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user