Kubernetes sql_exporter deployment #264
Closed
praveen-kumar-yadav-db
started this conversation in
General
Replies: 1 comment
-
Hey @praveen-kumar-yadav-db, you need to attach Alternatively, you might want to try out the helm chart:
You can check the default values here: https://github.com/burningalchemist/sql_exporter/tree/master/helm |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there any sample yaml available which can be deployed on kubernetes environment. I am trying below one but it is unable to find the sql_exporter.yml.
kind: Deployment
apiVersion: apps/v1
metadata:
name: prom-sql-exporter
spec:
replicas: 1
selector:
matchLabels:
app: prom-sql-exporter
template:
metadata:
creationTimestamp: null
labels:
app: prom-sql-exporter
annotations:
prometheus.io/port: '9237'
prometheus.io/scrape: 'true'
spec:
volumes:
- name: volume-0nf3v
configMap:
name: sql-exporter-config
defaultMode: 420
containers:
- resources:
limits:
cpu: 250m
memory: 32Mi
requests:
cpu: 5m
memory: 16Mi
terminationMessagePath: /dev/termination-log
name: prom-sql-exporter
ports:
- name: http
containerPort: 9237
protocol: TCP
imagePullPolicy: IfNotPresent
volumeMounts:
- name: volume-0nf3v
mountPath: /config
terminationMessagePolicy: File
image: burningalchemist/sql_exporter:0.11
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
Beta Was this translation helpful? Give feedback.
All reactions