]> piware.de Git - learn-metrics.git/blobdiff - learn-metrics.yaml
Add custom prometheus data source from host
[learn-metrics.git] / learn-metrics.yaml
index 4d76cf97b920c923b130828fae6ced8917d86604..6966d782784f1423579ec55caef08cdfaeeec434 100644 (file)
@@ -26,9 +26,27 @@ spec:
     - containerPort: 9090
       hostPort: 3001
       protocol: TCP
+    volumeMounts:
+      - name: prometheus-config
+        mountPath: /etc/prometheus/prometheus.yml
+        readOnly: true
+
+  - image: quay.io/bitnami/nginx
+    name: httpd
+    volumeMounts:
+    - name: http
+      mountPath: /app
+      readOnly: true
 
   volumes:
   - hostPath:
       path: ./conf-grafana/datasource.yaml
       type: File
     name: grafana-datasource
+  - hostPath:
+      path: ./conf-prometheus/prometheus.yml
+      type: File
+    name: prometheus-config
+  - hostPath:
+      path: ./http
+    name: http