openhab2 prometheus exporter
This commit is contained in:
@@ -15,7 +15,6 @@ haproxy:
|
||||
extra: user haproxy group haproxy
|
||||
ssl-default-bind-ciphers: "ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384"
|
||||
ssl-default-bind-options: "no-sslv3 no-tlsv10 no-tlsv11"
|
||||
|
||||
user: haproxy
|
||||
group: haproxy
|
||||
chroot:
|
||||
@@ -36,8 +35,6 @@ haproxy:
|
||||
502: /etc/haproxy/errors/502.http
|
||||
503: /etc/haproxy/errors/503.http
|
||||
504: /etc/haproxy/errors/504.http
|
||||
|
||||
{# Suported by HAProxy 1.6 #}
|
||||
resolvers:
|
||||
local_dns:
|
||||
options:
|
||||
@@ -45,8 +42,6 @@ haproxy:
|
||||
- resolve_retries 3
|
||||
- timeout retry 1s
|
||||
- hold valid 10s
|
||||
|
||||
|
||||
listens:
|
||||
stats:
|
||||
bind:
|
||||
@@ -75,3 +70,19 @@ haproxy:
|
||||
host: 127.0.0.1
|
||||
port: 8080
|
||||
check: check
|
||||
|
||||
systemd:
|
||||
service:
|
||||
openhab2-prometheus-exporter:
|
||||
Unit:
|
||||
Description: OpenHAB2 Prometheus exporter
|
||||
Wants: openhab2.service
|
||||
Service:
|
||||
WorkingDirectory: /usr/local/bin
|
||||
ExecStart: /usr/bin/gunicorn3 -w 2 -b 0.0.0.0:9999 openhab2-prometheus-exporter:app
|
||||
Restart: on-failure
|
||||
User: openhab
|
||||
Group: openhab
|
||||
Install:
|
||||
WantedBy: multi-user.target
|
||||
|
||||
|
||||
Reference in New Issue
Block a user