diff options
author | makefunstuff <[email protected]> | 2024-06-28 21:49:42 +0200 |
---|---|---|
committer | makefunstuff <[email protected]> | 2024-06-28 21:49:42 +0200 |
commit | 8c4a3ae4c40d3b08b153f6143c69d6320e8d0286 (patch) | |
tree | d4e2dfd0385d5229814c93ea315f36dc45dc693e /tools/monitoring | |
parent | b1f8aa3b4b182c002c34d3b45942e18fde5d654f (diff) | |
download | k3s-lab-8c4a3ae4c40d3b08b153f6143c69d6320e8d0286.tar.gz |
trying to split to separate applications and use applicationset instead
Diffstat (limited to '')
-rw-r--r-- | tools/monitoring/Chart.yaml | 23 | ||||
-rw-r--r-- | tools/monitoring/templates/pvc.yaml | 32 | ||||
-rw-r--r-- | tools/monitoring/values.yaml | 111 |
3 files changed, 0 insertions, 166 deletions
diff --git a/tools/monitoring/Chart.yaml b/tools/monitoring/Chart.yaml deleted file mode 100644 index b64fceb..0000000 --- a/tools/monitoring/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: monitoring -description: A Helm chart for setting up Grafana, Prometheus, Elasticsearch, and OpenTelemetry Collector -version: 0.1.0 -appVersion: "1.0" - -dependencies: - - name: grafana - version: 8.2.0 - repository: "https://grafana.github.io/helm-charts" - - name: prometheus - version: 25.22.0 - repository: "https://prometheus-community.github.io/helm-charts" - - name: elasticsearch - version: 8.5.1 - repository: "https://helm.elastic.co" - - name: opentelemetry-collector - version: 0.96.0 - repository: "https://open-telemetry.github.io/opentelemetry-helm-charts" - - name: logstash - version: 8.5.1 - repository: https://helm.elastic.co - diff --git a/tools/monitoring/templates/pvc.yaml b/tools/monitoring/templates/pvc.yaml deleted file mode 100644 index ddf7aa7..0000000 --- a/tools/monitoring/templates/pvc.yaml +++ /dev/null @@ -1,32 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: elasticsearch-master - labels: - app: elasticsearch - role: master -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 30Gi - storageClassName: standard - ---- - -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: elasticsearch-data - labels: - app: elasticsearch - role: data -spec: - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 30Gi - storageClassName: standard - diff --git a/tools/monitoring/values.yaml b/tools/monitoring/values.yaml deleted file mode 100644 index 0ad09e3..0000000 --- a/tools/monitoring/values.yaml +++ /dev/null @@ -1,111 +0,0 @@ -global: - namespace: default - -grafana: - ingress: - enabled: true - annotations: - traefik.ingress.kubernetes.io/router.entrypoints: websecure - traefik.ingress.kubernetes.io/router.tls: "true" - traefik.ingress.kubernetes.io/router.tls.certresolver: "default" - traefik.ingress.kubernetes.io/redirect-entry-point: https - cert-manager.io/cluster-issuer: letsencrypt-prod - hosts: - - grafana.topkek.cloud - path: / - tls: - - hosts: - - grafana.topkek.cloud - secretName: grafana-tls - - datasources: - datasources.yaml: - apiVersion: 1 - datasources: - - name: Prometheus - type: prometheus - access: proxy - url: http://prometheus-server.default.svc.cluster.local - isDefault: true - - name: Elasticsearch - type: elasticsearch - access: proxy - url: http://elasticsearch-master.default.svc.cluster.local:9200 - jsonData: - esVersion: 7 - timeField: "@timestamp" - -prometheus: - alertmanager: - enabled: true - pushgateway: - enabled: true - server: - enabled: true - -elasticsearch: - volumeClaimTemplate: - accessModes: [ "ReadWriteOnce" ] - resources: - requests: - storage: 30Gi - -logstash: - enabled: true - volumeClaimTemplate: - accessModes: [ "ReadWriteOnce" ] - resources: - requests: - storage: 10Gi - logstashConfig: - logstash.yml: | - http.host: "0.0.0.0" - xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch-master:9200" ] - logstashPipeline: - logstash.conf: | - input { - tcp { - port => 5044 - codec => json - } - } - output { - elasticsearch { - hosts => ["http://elasticsearch-master:9200"] - index => "logstash-%{+YYYY.MM.dd}" - } - } - -opentelemetry-collector: - mode: deployment - image: - repository: otel/opentelemetry-collector - tag: "latest" - config: - receivers: - otlp: - protocols: - grpc: {} - http: {} - processors: - batch: {} - exporters: - prometheusremotewrite: - endpoint: "http://prometheus-server.default.svc.cluster.local/api/v1/write" - logging: - loglevel: debug - otlp: - endpoint: "http://logstash.default.svc.cluster.local:5044" - tls: - insecure: true - service: - pipelines: - metrics: - receivers: [otlp] - processors: [batch] - exporters: [prometheusremotewrite] - logs: - receivers: [otlp] - processors: [batch] - exporters: [otlp] - |