diff options
Diffstat (limited to 'tools/monitoring')
-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] - |