openhab2 prometheus exporter
This commit is contained in:
@@ -15,7 +15,6 @@ haproxy:
|
|||||||
extra: user haproxy group 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-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"
|
ssl-default-bind-options: "no-sslv3 no-tlsv10 no-tlsv11"
|
||||||
|
|
||||||
user: haproxy
|
user: haproxy
|
||||||
group: haproxy
|
group: haproxy
|
||||||
chroot:
|
chroot:
|
||||||
@@ -36,8 +35,6 @@ haproxy:
|
|||||||
502: /etc/haproxy/errors/502.http
|
502: /etc/haproxy/errors/502.http
|
||||||
503: /etc/haproxy/errors/503.http
|
503: /etc/haproxy/errors/503.http
|
||||||
504: /etc/haproxy/errors/504.http
|
504: /etc/haproxy/errors/504.http
|
||||||
|
|
||||||
{# Suported by HAProxy 1.6 #}
|
|
||||||
resolvers:
|
resolvers:
|
||||||
local_dns:
|
local_dns:
|
||||||
options:
|
options:
|
||||||
@@ -45,8 +42,6 @@ haproxy:
|
|||||||
- resolve_retries 3
|
- resolve_retries 3
|
||||||
- timeout retry 1s
|
- timeout retry 1s
|
||||||
- hold valid 10s
|
- hold valid 10s
|
||||||
|
|
||||||
|
|
||||||
listens:
|
listens:
|
||||||
stats:
|
stats:
|
||||||
bind:
|
bind:
|
||||||
@@ -75,3 +70,19 @@ haproxy:
|
|||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
port: 8080
|
port: 8080
|
||||||
check: check
|
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