fix monitoring hub

This commit is contained in:
Andrei Kvapil
2024-01-05 14:13:22 +01:00
parent 3572bc218b
commit 9f2c8c26aa
14 changed files with 22 additions and 24 deletions

1
TODO
View File

@@ -25,3 +25,4 @@ docs: where to store talosconfig
how to version helm charts
autombump chart versions for system charts
recursive namespace deletion
move icons to repo

View File

@@ -1,2 +1,6 @@
apiVersion: v2
name: monitoring-hub
version: 0.0.0
description: Monitoring and observability stack
icon: https://www.svgrepo.com/download/184787/analytics-laptop.svg
type: application
version: 0.1.1

View File

@@ -5,7 +5,7 @@ apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDashboard
metadata:
name: {{ $parts._0 }}-{{ $parts._1 }}
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
folder: {{ $parts._0 }}
instanceSelector:

View File

@@ -11,7 +11,7 @@ spec:
name: vm-longterm
type: prometheus
access: proxy
url: http://vmselect-vmcluster-longterm.cozy-monitoring-hub.svc:8481/longterm/select/0/prometheus/
url: http://vmselect-vmcluster-longterm.{{ .Release.Namespace }}.svc:8481/longterm/select/0/prometheus/
isDefault: false
jsonData:
'tlsSkipVerify': true

View File

@@ -11,7 +11,7 @@ spec:
name: vm
type: prometheus
access: proxy
url: http://vmselect-vmcluster.cozy-monitoring-hub.svc:8481/select/0/prometheus/
url: http://vmselect-vmcluster.{{ .Release.Namespace }}.svc:8481/select/0/prometheus/
isDefault: true
jsonData:
'tlsSkipVerify': true

View File

@@ -3,7 +3,7 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: vmalert-vmalert
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
endpoints:
- path: /metrics

View File

@@ -2,18 +2,18 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlert
metadata:
name: vmalert
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
datasource:
url: http://vmselect-vmcluster.cozy-monitoring-hub.svc:8481/select/0/prometheus
url: http://vmselect-vmcluster.{{ .Release.Namespace }}.svc:8481/select/0/prometheus
evaluationInterval: 15s
extraArgs:
remoteWrite.disablePathAppend: "true"
notifiers:
- url: http://vmalertmanager-alertmanager.cozy-monitoring-hub.svc:9093
- url: http://vmalertmanager-alertmanager.{{ .Release.Namespace }}.svc:9093
remoteRead:
url: http://vmselect-vmcluster.cozy-monitoring-hub.svc:8481/select/0/prometheus
url: http://vmselect-vmcluster.{{ .Release.Namespace }}.svc:8481/select/0/prometheus
remoteWrite:
url: http://vminsert-vmcluster.cozy-monitoring-hub.svc:8480/insert/0/prometheus/api/v1/write
url: http://vminsert-vmcluster.{{ .Release.Namespace }}.svc:8480/insert/0/prometheus/api/v1/write
resources: {}
selectAllByDefault: true

View File

@@ -18,7 +18,7 @@ stringData:
receivers:
- name: 'webhook'
webhook_configs:
- url: http://grafana-oncall-engine.cozy-monitoring-hub.svc:8080/integrations/v1/alertmanager/Kjb2NWxxSlgGtxz9F4ihovQBB/
- url: http://grafana-oncall-engine.{{ .Release.Namespace }}.svc:8080/integrations/v1/alertmanager/Kjb2NWxxSlgGtxz9F4ihovQBB/
---
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAlertmanager

View File

@@ -3,7 +3,7 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: vmstorage-vmcluster-longterm
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
endpoints:
- path: /metrics

View File

@@ -2,7 +2,7 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMCluster
metadata:
name: vmcluster-longterm
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
replicationFactor: 2
retentionPeriod: "14"

View File

@@ -3,7 +3,7 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: vminsert-vmcluster
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
endpoints:
- path: /metrics

View File

@@ -2,7 +2,7 @@ apiVersion: operator.victoriametrics.com/v1beta1
kind: VMCluster
metadata:
name: vmcluster
namespace: cozy-monitoring-hub
namespace: {{ .Release.Namespace }}
spec:
replicationFactor: 2
retentionPeriod: "3"

View File

@@ -1,11 +1,3 @@
_helm:
name: monitoring-hub
namespace: cozy-monitoring-hub
createNamespace: true
dependsOn:
- name: grafana-operator
- name: postgres-operator
adminPassword: Moh4ooN9phaech6Sai9aoGiezu4doh2i # TODO
oncall:

View File

@@ -1,6 +1,7 @@
http-balancer 0.1.0 HEAD
kubernetes 0.1.0 HEAD
monitoring-hub 0.0.0 HEAD
monitoring-hub 0.0.0 44a755d
monitoring-hub 0.1.1 HEAD
mysql 0.1.0 HEAD
postgres 0.1.0 HEAD
rabbitmq 0.1.0 HEAD