mirror of
https://github.com/zoriya/snow.git
synced 2025-12-05 23:06:23 +00:00
Add basicauth to otel
This commit is contained in:
12
apps/otel/otel-basicauth.yaml
Normal file
12
apps/otel/otel-basicauth.yaml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
apiVersion: external-secrets.io/v1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: otel-basicauth
|
||||||
|
spec:
|
||||||
|
refreshInterval: 24h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: bitwarden
|
||||||
|
dataFrom:
|
||||||
|
- extract:
|
||||||
|
key: otel-basicauth
|
||||||
@@ -18,18 +18,7 @@ spec:
|
|||||||
name: otel-collector
|
name: otel-collector
|
||||||
port:
|
port:
|
||||||
name: otlp-http
|
name: otlp-http
|
||||||
- host: otel-grpc.sdg.moe
|
|
||||||
http:
|
|
||||||
paths:
|
|
||||||
- path: /
|
|
||||||
pathType: Prefix
|
|
||||||
backend:
|
|
||||||
service:
|
|
||||||
name: otel-collector
|
|
||||||
port:
|
|
||||||
name: otlp-grpc
|
|
||||||
tls:
|
tls:
|
||||||
- hosts:
|
- hosts:
|
||||||
- otel.sdg.moe
|
- otel.sdg.moe
|
||||||
- otel-grpc.sdg.moe
|
|
||||||
secretName: otel-ssl
|
secretName: otel-ssl
|
||||||
|
|||||||
@@ -5,11 +5,24 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
mode: daemonset
|
mode: daemonset
|
||||||
env:
|
env:
|
||||||
- name: CLICKHOUSE_PASSWORD
|
- name: CLICKHOUSE_PASSWORD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: clickhouse-passwords
|
name: clickhouse-passwords
|
||||||
key: collector
|
key: collector
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: htpasswd
|
||||||
|
secret:
|
||||||
|
secretName: otel-basicauth
|
||||||
|
items:
|
||||||
|
- key: .htpasswd
|
||||||
|
path: .htpasswd
|
||||||
|
volumeMounts:
|
||||||
|
- name: htpasswd
|
||||||
|
mountPath: .htpasswd
|
||||||
|
subPath: .htpasswd
|
||||||
|
|
||||||
config:
|
config:
|
||||||
receivers:
|
receivers:
|
||||||
# hostmetrics:
|
# hostmetrics:
|
||||||
@@ -25,10 +38,10 @@ spec:
|
|||||||
# paging:
|
# paging:
|
||||||
otlp:
|
otlp:
|
||||||
protocols:
|
protocols:
|
||||||
grpc:
|
|
||||||
endpoint: 0.0.0.0:4317
|
|
||||||
http:
|
http:
|
||||||
endpoint: 0.0.0.0:4318
|
endpoint: 0.0.0.0:4318
|
||||||
|
auth:
|
||||||
|
authenticator: basicauth
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
memory_limiter:
|
memory_limiter:
|
||||||
@@ -66,14 +79,17 @@ spec:
|
|||||||
endpoint: 0.0.0.0:1777
|
endpoint: 0.0.0.0:1777
|
||||||
zpages:
|
zpages:
|
||||||
endpoint: 0.0.0.0:55679
|
endpoint: 0.0.0.0:55679
|
||||||
|
basicauth:
|
||||||
|
htpasswd:
|
||||||
|
file: .htpasswd
|
||||||
|
|
||||||
service:
|
service:
|
||||||
extensions: [health_check, pprof, zpages]
|
extensions: [basicauth, health_check, pprof, zpages]
|
||||||
pipelines:
|
pipelines:
|
||||||
traces:
|
traces:
|
||||||
receivers: [otlp]
|
receivers: [otlp]
|
||||||
processors: [memory_limiter, batch]
|
processors: [memory_limiter, batch]
|
||||||
exporters: [debug, clickhouse]
|
exporters: [clickhouse]
|
||||||
metrics:
|
metrics:
|
||||||
receivers: [otlp] #[otlp, hostmetrics]
|
receivers: [otlp] #[otlp, hostmetrics]
|
||||||
processors: [memory_limiter, batch]
|
processors: [memory_limiter, batch]
|
||||||
@@ -81,4 +97,4 @@ spec:
|
|||||||
logs:
|
logs:
|
||||||
receivers: [otlp]
|
receivers: [otlp]
|
||||||
processors: [memory_limiter, batch]
|
processors: [memory_limiter, batch]
|
||||||
exporters: [debug, clickhouse]
|
exporters: [clickhouse]
|
||||||
|
|||||||
Reference in New Issue
Block a user