aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2024-06-02 17:24:14 +0100
committerGravatar Joe Banks <[email protected]>2024-06-02 17:25:20 +0100
commit6babe9a756866c945cba351c103d84b47475515e (patch)
treedd1fff41839f7d55323424e8e15961898e189062
parentRemove Kubernetes PostgreSQL Alerts (diff)
Remove PostgreSQL Exporter from Kubernetes
-rw-r--r--kubernetes/namespaces/monitoring/exporters/README.md1
-rw-r--r--kubernetes/namespaces/monitoring/exporters/postgres/postgres_exporter.yaml54
-rw-r--r--kubernetes/namespaces/monitoring/exporters/postgres/secrets.yamlbin309 -> 0 bytes
3 files changed, 0 insertions, 55 deletions
diff --git a/kubernetes/namespaces/monitoring/exporters/README.md b/kubernetes/namespaces/monitoring/exporters/README.md
index 6ed79f5..60d3ef9 100644
--- a/kubernetes/namespaces/monitoring/exporters/README.md
+++ b/kubernetes/namespaces/monitoring/exporters/README.md
@@ -4,5 +4,4 @@ This directory contains prometheus exporters for various services running on our
If any secrets are required for each exporter they will be in a secrets.yaml file next to the deployment.
Below is a list of the exporters:
-- [postgres_exporter](https://github.com/wrouesnel/postgres_exporter)
- [redis_exporter](https://github.com/oliver006/redis_exporter)
diff --git a/kubernetes/namespaces/monitoring/exporters/postgres/postgres_exporter.yaml b/kubernetes/namespaces/monitoring/exporters/postgres/postgres_exporter.yaml
deleted file mode 100644
index 882eca9..0000000
--- a/kubernetes/namespaces/monitoring/exporters/postgres/postgres_exporter.yaml
+++ /dev/null
@@ -1,54 +0,0 @@
-# Exporter for taking statistics on our PostgreSQL instance
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: postgres-exporter
- namespace: monitoring
-spec:
- replicas: 1
- selector:
- matchLabels:
- app: postgres-exporter
- template:
- metadata:
- labels:
- app: postgres-exporter
- spec:
- containers:
- - name: postgres-exporter
- image: quay.io/prometheuscommunity/postgres-exporter:latest
- imagePullPolicy: Always
- resources:
- requests:
- cpu: 5m
- memory: 20Mi
- limits:
- cpu: 20m
- memory: 50Mi
- ports:
- - containerPort: 9187
- envFrom:
- - secretRef:
- name: postgres-exporter-env
- securityContext:
- readOnlyRootFilesystem: true
- securityContext:
- fsGroup: 2000
- runAsUser: 1000
- runAsNonRoot: true
----
-apiVersion: v1
-kind: Service
-metadata:
- name: postgres-exporter
- namespace: monitoring
- annotations:
- prometheus.io/scrape: "true"
- prometheus.io/port: "9187"
-spec:
- selector:
- app: postgres-exporter
- ports:
- - protocol: TCP
- port: 9187
- targetPort: 9187
diff --git a/kubernetes/namespaces/monitoring/exporters/postgres/secrets.yaml b/kubernetes/namespaces/monitoring/exporters/postgres/secrets.yaml
deleted file mode 100644
index 34b68ac..0000000
--- a/kubernetes/namespaces/monitoring/exporters/postgres/secrets.yaml
+++ /dev/null
Binary files differ