]> piware.de Git - learn-metrics.git/blobdiff - conf-prometheus/prometheus.yml
Add custom prometheus data source from host
[learn-metrics.git] / conf-prometheus / prometheus.yml
diff --git a/conf-prometheus/prometheus.yml b/conf-prometheus/prometheus.yml
new file mode 100644 (file)
index 0000000..592ac7a
--- /dev/null
@@ -0,0 +1,22 @@
+global:
+  scrape_interval: 5s
+  scrape_timeout: 5s
+  evaluation_interval: 15s
+alerting:
+  alertmanagers:
+  - static_configs:
+    - targets: []
+    scheme: http
+    timeout: 10s
+    api_version: v1
+scrape_configs:
+- job_name: 'prometheus'
+  static_configs:
+  - targets: ['localhost:9090']
+
+- job_name: host-http
+  honor_timestamps: true
+  metrics_path: /metrics
+  scheme: http
+  static_configs:
+  - targets: ['localhost:8080']