完善线上配置
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
# 根用户密码,不要为空
|
# 根用户密码,不要为空
|
||||||
CLICKHOUSE_PASSWORD=
|
CLICKHOUSE_PASSWORD=
|
||||||
|
|
||||||
|
# caddy 监听地址,可以是域名或者本机公网 ip
|
||||||
|
CADDY_GRAFANA_HOST=
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
:20080 {
|
{
|
||||||
redirect https://{host}{uri}:20443
|
default_sni {$GRAFANA_HOST}
|
||||||
}
|
}
|
||||||
|
|
||||||
:20443 {
|
https://{$GRAFANA_HOST}:20443 {
|
||||||
tls internal
|
tls internal
|
||||||
reverse_proxy grafana:3000
|
reverse_proxy grafana:3000
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,16 @@ services:
|
|||||||
|
|
||||||
otel-collector-esxi:
|
otel-collector-esxi:
|
||||||
image: otel/opentelemetry-collector-contrib:latest
|
image: otel/opentelemetry-collector-contrib:latest
|
||||||
|
environment:
|
||||||
|
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- ./otel/esxi.yaml:/etc/otelcol-contrib/config.yaml
|
- ./otel/esxi.yaml:/etc/otelcol-contrib/config.yaml
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
otel-collector-app:
|
otel-collector-app:
|
||||||
image: otel/opentelemetry-collector-contrib:latest
|
image: otel/opentelemetry-collector-contrib:latest
|
||||||
|
environment:
|
||||||
|
- CLICKHOUSE_PASSWORD=${CLICKHOUSE_PASSWORD}
|
||||||
volumes:
|
volumes:
|
||||||
- ./otel/app.yaml:/etc/otelcol-contrib/config.yaml
|
- ./otel/app.yaml:/etc/otelcol-contrib/config.yaml
|
||||||
ports:
|
ports:
|
||||||
@@ -39,6 +43,8 @@ services:
|
|||||||
|
|
||||||
caddy:
|
caddy:
|
||||||
image: caddy:latest
|
image: caddy:latest
|
||||||
|
environment:
|
||||||
|
- GRAFANA_HOST=${CADDY_GRAFANA_HOST}
|
||||||
volumes:
|
volumes:
|
||||||
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
- ./caddy/Caddyfile:/etc/caddy/Caddyfile
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ exporters:
|
|||||||
clickhouse:
|
clickhouse:
|
||||||
endpoint: tcp://clickhouse:9000
|
endpoint: tcp://clickhouse:9000
|
||||||
username: default
|
username: default
|
||||||
password: "123456"
|
password: ${CLICKHOUSE_PASSWORD}
|
||||||
|
|
||||||
service:
|
service:
|
||||||
pipelines:
|
pipelines:
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ exporters:
|
|||||||
clickhouse:
|
clickhouse:
|
||||||
endpoint: tcp://clickhouse:9000
|
endpoint: tcp://clickhouse:9000
|
||||||
username: default
|
username: default
|
||||||
password: "123456"
|
password: ${CLICKHOUSE_PASSWORD}
|
||||||
|
|
||||||
service:
|
service:
|
||||||
pipelines:
|
pipelines:
|
||||||
@@ -110,6 +110,8 @@ service:
|
|||||||
processors:
|
processors:
|
||||||
- batch
|
- batch
|
||||||
- resource/103.183.122.5
|
- resource/103.183.122.5
|
||||||
|
exporters:
|
||||||
|
- clickhouse
|
||||||
metrics/103.183.123.3:
|
metrics/103.183.123.3:
|
||||||
receivers:
|
receivers:
|
||||||
- vcenter/103.183.123.3
|
- vcenter/103.183.123.3
|
||||||
|
|||||||
Reference in New Issue
Block a user