Update configuration
This commit is contained in:
13
configurations/home-assistant/configuration-production.yaml
Normal file
13
configurations/home-assistant/configuration-production.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# Loads default set of integrations. Do not remove
|
||||
# This was added to the homeAutomation repo.
|
||||
# This is a sample configuration. Please create a configuration.production.yml for production use.
|
||||
default_config:
|
||||
|
||||
automation: !include automations.yaml
|
||||
script: !include scripts.yaml
|
||||
scene: !include scenes.yaml
|
||||
|
||||
http:
|
||||
use_x_forwarded_for: true
|
||||
trusted_proxies:
|
||||
- 172.18.0.0/24
|
||||
@@ -6,7 +6,12 @@ receivers:
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
|
||||
processors:
|
||||
batch:
|
||||
|
||||
exporters:
|
||||
prometheus:
|
||||
endpoint: 0.0.0.0:8889
|
||||
debug:
|
||||
verbosity: detailed
|
||||
|
||||
@@ -15,5 +20,9 @@ service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: []
|
||||
processors: [batch]
|
||||
exporters: [debug]
|
||||
metrics:
|
||||
receivers: [otlp]
|
||||
processors: [batch]
|
||||
exporters: [prometheus,debug]
|
||||
|
||||
@@ -8,8 +8,11 @@ scrape_configs:
|
||||
- targets: ["prometheus:9090"]
|
||||
|
||||
- job_name: "node"
|
||||
scrape_interval: 1m
|
||||
static_configs:
|
||||
- targets: ["node-exporter:9100"]
|
||||
- job_name: "pi_node"
|
||||
|
||||
- job_name: "otel"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ["10.55.8.1:9100"]
|
||||
- targets: ["otel-collector:8889"]
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
[entryPoints]
|
||||
[entryPoints.http]
|
||||
address = ":80"
|
||||
|
||||
[entryPoints.https]
|
||||
address = ":443"
|
||||
[entryPoints.https.tls]
|
||||
[[entryPoints.https.tls.certificates]]
|
||||
certFile = "/var/lib/certificates/cert.pem"
|
||||
keyFile = "/var/lib/certificates/key.pem"
|
||||
|
||||
[file]
|
||||
[backends]
|
||||
[backends.whoami]
|
||||
[backends.whoami.servers.server1]
|
||||
url = "http://whoami:2001"
|
||||
|
||||
[backends.grafana]
|
||||
[backends.grafana.servers.server1]
|
||||
url = "http://grafana:3000"
|
||||
|
||||
[backends.syncthing]
|
||||
[backends.syncthing.servers.server1]
|
||||
url = "http://syncthing:8384"
|
||||
|
||||
[backends.homeassistant]
|
||||
[backends.homeassistant.servers.server1]
|
||||
url = "http://homeassistant:8123"
|
||||
|
||||
[backends.influxdb]
|
||||
[backends.influxdb.servers.server1]
|
||||
url = "http://influxdb:8086"
|
||||
|
||||
[frontends]
|
||||
[frontends.whoami]
|
||||
backend = "whoami"
|
||||
[frontends.whoami.routes.path]
|
||||
rule = "Path:/whoami;ReplacePathRegex: ^/whoami(.*) /$1"
|
||||
|
||||
[frontends.grafana]
|
||||
backend = "grafana"
|
||||
[frontends.grafana.routes.path]
|
||||
rule = "Path:/grafana;ReplacePathRegex: ^/grafana(.*) /$1"
|
||||
|
||||
[frontends.syncthing]
|
||||
backend = "syncthing"
|
||||
[frontends.syncthing.routes.path]
|
||||
rule = "Path:/syncthing;ReplacePathRegex: ^/syncthing(.*) /$1"
|
||||
|
||||
[frontends.syncthing-referrer]
|
||||
backend = "syncthing"
|
||||
[frontends.syncthing-referrer.routes.referrer]
|
||||
rule = "HeadersRegexp: Referer, /*.syncthing"
|
||||
|
||||
[frontends.homeassistant]
|
||||
backend = "homeassistant"
|
||||
[frontends.homeassistant.routes.path]
|
||||
rule = "Path:/homeassistant;ReplacePathRegex: ^/homeassistant(.*) /$1"
|
||||
|
||||
[frontends.influxdb]
|
||||
backend = "influxdb"
|
||||
[frontends.influxdb.routes.path]
|
||||
rule = "Path:/influxdb;ReplacePathRegex: ^/influxdb(.*) /$1"
|
||||
|
||||
[frontends.influxdb-referrer]
|
||||
backend = "influxdb"
|
||||
[frontends.influxdb-referrer.routes.referrer]
|
||||
rule = "HeadersRegexp: Referer, /*.influxdb"
|
||||
|
||||
|
||||
[tracing]
|
||||
[tracing.otlp.http]
|
||||
endpoint = "http://otel-collector:4318"
|
||||
insecure = true
|
||||
25
configurations/traefik/traefik.yml
Normal file
25
configurations/traefik/traefik.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
## traefik.yml
|
||||
|
||||
# Docker configuration backend
|
||||
providers:
|
||||
docker:
|
||||
defaultRule: "Host(`{{ trimPrefix `/` .Name }}.docker.localhost`)"
|
||||
|
||||
# API and dashboard configuration
|
||||
api:
|
||||
insecure: true
|
||||
|
||||
tracing:
|
||||
capturedRequestHeaders:
|
||||
- X-Forwarded-Prefix
|
||||
otlp:
|
||||
grpc:
|
||||
endpoint: otel-collector:4317
|
||||
insecure: true
|
||||
|
||||
metrics:
|
||||
otlp:
|
||||
addEntryPointsLabels: true
|
||||
grpc:
|
||||
endpoint: otel-collector:4317
|
||||
insecure: true
|
||||
Reference in New Issue
Block a user