docs(prometheus-exporter): add README and sample compose setup
This commit is contained in:
BIN
prometheus-exporter/support/banner.png
Normal file
BIN
prometheus-exporter/support/banner.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 122 KiB |
31
prometheus-exporter/support/compose.yml
Normal file
31
prometheus-exporter/support/compose.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
services:
|
||||
grafana:
|
||||
image: grafana/grafana-oss
|
||||
container_name: factorio_grafana
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 3000:3000
|
||||
volumes:
|
||||
- ./grafana/config:/etc/grafana/provisioning/datasources:ro
|
||||
- factorio_grafana:/var/lib/grafana:Z
|
||||
|
||||
prometheus:
|
||||
image: prom/prometheus
|
||||
container_name: factorio_prometheus
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- factorio_prometheus:/prometheus:Z
|
||||
- ./prometheus/config:/etc/prometheus:ro
|
||||
|
||||
sidecar:
|
||||
image: httpd:latest
|
||||
container_name: factorio_prometheus_sidecar
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ~/.factorio/script-output:/usr/local/apache2/htdocs:ro
|
||||
|
||||
volumes:
|
||||
factorio_grafana:
|
||||
external: true
|
||||
factorio_prometheus:
|
||||
external: true
|
||||
@@ -0,0 +1,9 @@
|
||||
apiVersion: 1
|
||||
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
type: prometheus
|
||||
url: http://factorio_prometheus:9090
|
||||
isDefault: true
|
||||
access: proxy
|
||||
editable: true
|
||||
21
prometheus-exporter/support/prometheus/config/prometheus.yml
Normal file
21
prometheus-exporter/support/prometheus/config/prometheus.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
evaluation_interval: 15s
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets: []
|
||||
scheme: http
|
||||
timeout: 10s
|
||||
api_version: v2
|
||||
scrape_configs:
|
||||
- job_name: factorio
|
||||
honor_timestamps: true
|
||||
scrape_interval: 15s
|
||||
scrape_timeout: 10s
|
||||
metrics_path: /metrics.prom
|
||||
scheme: http
|
||||
static_configs:
|
||||
- targets:
|
||||
- factorio_prometheus_sidecar:9010
|
||||
Reference in New Issue
Block a user