forked from mtusi2026/mtusi2026lab7
lab7
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
events {}
|
||||
http {
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
ssl_certificate /tls/server/cert.crt;
|
||||
ssl_certificate_key /tls/server/cert.key;
|
||||
ssl_client_certificate /tls/ca.crt;
|
||||
ssl_verify_client on;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
if ($ssl_client_s_dn != "CN=lab-lb") { return 403; }
|
||||
client_max_body_size 10m;
|
||||
location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"id": null,
|
||||
"uid": "messenger-observability",
|
||||
"title": "Messenger — Observability",
|
||||
"tags": ["lab6", "opentelemetry"],
|
||||
"timezone": "browser",
|
||||
"schemaVersion": 39,
|
||||
"version": 1,
|
||||
"refresh": "5s",
|
||||
"time": {"from": "now-1h", "to": "now"},
|
||||
"panels": [
|
||||
{"id": 1, "type": "timeseries", "title": "API requests / sec", "gridPos": {"h": 8, "w": 12, "x": 0, "y": 0}, "datasource": {"type": "prometheus", "uid": "prometheus"}, "targets": [{"expr": "sum by (http_route, http_status_class) (rate(otel_messenger_http_requests_total[1m]))", "legendFormat": "{{http_route}} {{http_status_class}}", "refId": "A"}]},
|
||||
{"id": 2, "type": "timeseries", "title": "API duration p95 (seconds)", "gridPos": {"h": 8, "w": 12, "x": 12, "y": 0}, "datasource": {"type": "prometheus", "uid": "prometheus"}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(otel_messenger_http_request_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}]},
|
||||
{"id": 3, "type": "timeseries", "title": "Worker jobs / sec", "gridPos": {"h": 8, "w": 12, "x": 0, "y": 8}, "datasource": {"type": "prometheus", "uid": "prometheus"}, "targets": [{"expr": "sum by (outcome) (rate(otel_messenger_jobs_processed_total[1m]))", "legendFormat": "{{outcome}}", "refId": "A"}]},
|
||||
{"id": 4, "type": "timeseries", "title": "Worker job duration p95 (seconds)", "gridPos": {"h": 8, "w": 12, "x": 12, "y": 8}, "datasource": {"type": "prometheus", "uid": "prometheus"}, "targets": [{"expr": "histogram_quantile(0.95, sum by (le) (rate(otel_messenger_job_processing_duration_seconds_bucket[5m])))", "legendFormat": "p95", "refId": "A"}]},
|
||||
{"id": 5, "type": "logs", "title": "API + worker structured logs", "gridPos": {"h": 10, "w": 24, "x": 0, "y": 16}, "datasource": {"type": "loki", "uid": "loki"}, "targets": [{"expr": "{service_name=~\"messenger-api|messenger-worker\"}", "refId": "A"}]}
|
||||
],
|
||||
"annotations": {"list": []},
|
||||
"templating": {"list": []},
|
||||
"links": []
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
apiVersion: 1
|
||||
providers:
|
||||
- name: Messenger
|
||||
orgId: 1
|
||||
folder: Laboratory 6
|
||||
type: file
|
||||
disableDeletion: false
|
||||
editable: true
|
||||
options:
|
||||
path: /var/lib/grafana/dashboards
|
||||
@@ -0,0 +1,117 @@
|
||||
apiVersion: 1
|
||||
datasources:
|
||||
- name: Prometheus
|
||||
uid: prometheus
|
||||
type: prometheus
|
||||
access: proxy
|
||||
url: https://prometheus:9090
|
||||
isDefault: true
|
||||
editable: false
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
secureJsonData:
|
||||
tlsCACert: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEFTCCAn2gAwIBAgIUPJlpBqANeNOFtPnZUUVN8ivYWuIwDQYJKoZIhvcNAQEL
|
||||
BQAwEjEQMA4GA1UEAwwHTGFiNyBDQTAeFw0yNjEyMDMxMTE4MDVaFw0yNzEyMDMx
|
||||
MTE4MDVaMBIxEDAOBgNVBAMMB0xhYjcgQ0EwggGiMA0GCSqGSIb3DQEBAQUAA4IB
|
||||
jwAwggGKAoIBgQDGav9hYFR8D74JhsjiyF0LC5FSKmx82ADoey7gVFDgX/woyWHH
|
||||
jfTk2Vq21hh6sNINiNhUSh7onTa6PKrGFn+2tzG7HySBy1jPM1xGznWmeBMShieW
|
||||
NagOboEWJRnrbcn2Tb1aU2HrYT9enka12QQd5/lpNKb2ssxZ4EOsLrQ35U1rErO7
|
||||
I/O4DejMnUfoB0+IZHetZhPoUiqhlZCX1u07mKg9zqNgI/0zPMbnG/KSILNpy9wM
|
||||
WlxpyVA5whTW0O14NfEo+EPCdkR2tw1b1Lw8xFJVFcMwHTqVdCSbr8EduRgohZPu
|
||||
0pgSdJrXVd6dQUi1tPpKTP7jUVgH/huc/RFR3WB4QRrWJRdvFnYAdJ0Zcx2aPE5t
|
||||
eXznVGjU09KXHSJGnrUpGcHq4TjPt+W1hF8hRLG1kyA5tbuG8XpEcLQjB4+8Sw1t
|
||||
Mk9m5h7mwCkgaVexy6gzEcF9ig5m4U3+D97ADrwkqOh4uQTce6LibQ5AbC71O69A
|
||||
E8yAY7nTh8m8ZbUCAwEAAaNjMGEwHwYDVR0jBBgwFoAUM2aF6O8X9b7krqrjFBXK
|
||||
MQTT9nAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE
|
||||
FDNmhejvF/W+5K6q4xQVyjEE0/ZwMA0GCSqGSIb3DQEBCwUAA4IBgQDCMvEfZ9id
|
||||
NW/17npiGika7nwPqethM4l20fwJ/9qHKKwF3WX62JbCU6/63SimxoNTFv4ubrCC
|
||||
5+SGg07u03xEPRE0Z6VrscsUPDbE9mTFmc9TBSqZeQzDMH2aJ4fv1Qe6GhxCcO0T
|
||||
BVr2ETazNJpPwNrMZHdQkmoBC4xtxvKWc0NvDbPCwHvZ+WhqsZGEYTV5qgOkL836
|
||||
GiJ47xlSCg1sn6hIGWe8lToBJKXJkkpshbtOWV/Nn9Tt3gTZ2BZswQVan8+d3YBB
|
||||
eEmh9V7O5/NxdEvmJSZpFhL3P0dj5G1XI4VqBF6oSF0Puf/mB8XYLGlJ34jRij/r
|
||||
95heIJh1Qsc4l5tnwU/KDzhTTn0T2tvrxImxvgUMaFVsahk5H65/Iav6anJVnI5Y
|
||||
xo+BSe9g2RQUnrKMpDwsS5NnLXkg/UOtOoMLyG5rqhxTzS+/50e2fgVugbAcfhEd
|
||||
RqVhoNcaEfv6e4Vo4i6ANQ8zWGpueWqRgXJo4Pr32+v4fhOf85vp9WA=
|
||||
-----END CERTIFICATE-----
|
||||
- name: Loki
|
||||
uid: loki
|
||||
type: loki
|
||||
access: proxy
|
||||
url: https://loki:3100
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
maxLines: 1000
|
||||
editable: false
|
||||
secureJsonData:
|
||||
tlsCACert: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEFTCCAn2gAwIBAgIUPJlpBqANeNOFtPnZUUVN8ivYWuIwDQYJKoZIhvcNAQEL
|
||||
BQAwEjEQMA4GA1UEAwwHTGFiNyBDQTAeFw0yNjEyMDMxMTE4MDVaFw0yNzEyMDMx
|
||||
MTE4MDVaMBIxEDAOBgNVBAMMB0xhYjcgQ0EwggGiMA0GCSqGSIb3DQEBAQUAA4IB
|
||||
jwAwggGKAoIBgQDGav9hYFR8D74JhsjiyF0LC5FSKmx82ADoey7gVFDgX/woyWHH
|
||||
jfTk2Vq21hh6sNINiNhUSh7onTa6PKrGFn+2tzG7HySBy1jPM1xGznWmeBMShieW
|
||||
NagOboEWJRnrbcn2Tb1aU2HrYT9enka12QQd5/lpNKb2ssxZ4EOsLrQ35U1rErO7
|
||||
I/O4DejMnUfoB0+IZHetZhPoUiqhlZCX1u07mKg9zqNgI/0zPMbnG/KSILNpy9wM
|
||||
WlxpyVA5whTW0O14NfEo+EPCdkR2tw1b1Lw8xFJVFcMwHTqVdCSbr8EduRgohZPu
|
||||
0pgSdJrXVd6dQUi1tPpKTP7jUVgH/huc/RFR3WB4QRrWJRdvFnYAdJ0Zcx2aPE5t
|
||||
eXznVGjU09KXHSJGnrUpGcHq4TjPt+W1hF8hRLG1kyA5tbuG8XpEcLQjB4+8Sw1t
|
||||
Mk9m5h7mwCkgaVexy6gzEcF9ig5m4U3+D97ADrwkqOh4uQTce6LibQ5AbC71O69A
|
||||
E8yAY7nTh8m8ZbUCAwEAAaNjMGEwHwYDVR0jBBgwFoAUM2aF6O8X9b7krqrjFBXK
|
||||
MQTT9nAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE
|
||||
FDNmhejvF/W+5K6q4xQVyjEE0/ZwMA0GCSqGSIb3DQEBCwUAA4IBgQDCMvEfZ9id
|
||||
NW/17npiGika7nwPqethM4l20fwJ/9qHKKwF3WX62JbCU6/63SimxoNTFv4ubrCC
|
||||
5+SGg07u03xEPRE0Z6VrscsUPDbE9mTFmc9TBSqZeQzDMH2aJ4fv1Qe6GhxCcO0T
|
||||
BVr2ETazNJpPwNrMZHdQkmoBC4xtxvKWc0NvDbPCwHvZ+WhqsZGEYTV5qgOkL836
|
||||
GiJ47xlSCg1sn6hIGWe8lToBJKXJkkpshbtOWV/Nn9Tt3gTZ2BZswQVan8+d3YBB
|
||||
eEmh9V7O5/NxdEvmJSZpFhL3P0dj5G1XI4VqBF6oSF0Puf/mB8XYLGlJ34jRij/r
|
||||
95heIJh1Qsc4l5tnwU/KDzhTTn0T2tvrxImxvgUMaFVsahk5H65/Iav6anJVnI5Y
|
||||
xo+BSe9g2RQUnrKMpDwsS5NnLXkg/UOtOoMLyG5rqhxTzS+/50e2fgVugbAcfhEd
|
||||
RqVhoNcaEfv6e4Vo4i6ANQ8zWGpueWqRgXJo4Pr32+v4fhOf85vp9WA=
|
||||
-----END CERTIFICATE-----
|
||||
- name: Tempo
|
||||
uid: tempo
|
||||
type: tempo
|
||||
access: proxy
|
||||
url: https://tempo:3200
|
||||
jsonData:
|
||||
tlsAuthWithCACert: true
|
||||
tlsSkipVerify: false
|
||||
tracesToLogsV2:
|
||||
datasourceUid: loki
|
||||
spanStartTimeShift: "-1h"
|
||||
spanEndTimeShift: "1h"
|
||||
filterByTraceID: true
|
||||
filterBySpanID: false
|
||||
nodeGraph:
|
||||
enabled: true
|
||||
editable: false
|
||||
secureJsonData:
|
||||
tlsCACert: |
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIEFTCCAn2gAwIBAgIUPJlpBqANeNOFtPnZUUVN8ivYWuIwDQYJKoZIhvcNAQEL
|
||||
BQAwEjEQMA4GA1UEAwwHTGFiNyBDQTAeFw0yNjEyMDMxMTE4MDVaFw0yNzEyMDMx
|
||||
MTE4MDVaMBIxEDAOBgNVBAMMB0xhYjcgQ0EwggGiMA0GCSqGSIb3DQEBAQUAA4IB
|
||||
jwAwggGKAoIBgQDGav9hYFR8D74JhsjiyF0LC5FSKmx82ADoey7gVFDgX/woyWHH
|
||||
jfTk2Vq21hh6sNINiNhUSh7onTa6PKrGFn+2tzG7HySBy1jPM1xGznWmeBMShieW
|
||||
NagOboEWJRnrbcn2Tb1aU2HrYT9enka12QQd5/lpNKb2ssxZ4EOsLrQ35U1rErO7
|
||||
I/O4DejMnUfoB0+IZHetZhPoUiqhlZCX1u07mKg9zqNgI/0zPMbnG/KSILNpy9wM
|
||||
WlxpyVA5whTW0O14NfEo+EPCdkR2tw1b1Lw8xFJVFcMwHTqVdCSbr8EduRgohZPu
|
||||
0pgSdJrXVd6dQUi1tPpKTP7jUVgH/huc/RFR3WB4QRrWJRdvFnYAdJ0Zcx2aPE5t
|
||||
eXznVGjU09KXHSJGnrUpGcHq4TjPt+W1hF8hRLG1kyA5tbuG8XpEcLQjB4+8Sw1t
|
||||
Mk9m5h7mwCkgaVexy6gzEcF9ig5m4U3+D97ADrwkqOh4uQTce6LibQ5AbC71O69A
|
||||
E8yAY7nTh8m8ZbUCAwEAAaNjMGEwHwYDVR0jBBgwFoAUM2aF6O8X9b7krqrjFBXK
|
||||
MQTT9nAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYE
|
||||
FDNmhejvF/W+5K6q4xQVyjEE0/ZwMA0GCSqGSIb3DQEBCwUAA4IBgQDCMvEfZ9id
|
||||
NW/17npiGika7nwPqethM4l20fwJ/9qHKKwF3WX62JbCU6/63SimxoNTFv4ubrCC
|
||||
5+SGg07u03xEPRE0Z6VrscsUPDbE9mTFmc9TBSqZeQzDMH2aJ4fv1Qe6GhxCcO0T
|
||||
BVr2ETazNJpPwNrMZHdQkmoBC4xtxvKWc0NvDbPCwHvZ+WhqsZGEYTV5qgOkL836
|
||||
GiJ47xlSCg1sn6hIGWe8lToBJKXJkkpshbtOWV/Nn9Tt3gTZ2BZswQVan8+d3YBB
|
||||
eEmh9V7O5/NxdEvmJSZpFhL3P0dj5G1XI4VqBF6oSF0Puf/mB8XYLGlJ34jRij/r
|
||||
95heIJh1Qsc4l5tnwU/KDzhTTn0T2tvrxImxvgUMaFVsahk5H65/Iav6anJVnI5Y
|
||||
xo+BSe9g2RQUnrKMpDwsS5NnLXkg/UOtOoMLyG5rqhxTzS+/50e2fgVugbAcfhEd
|
||||
RqVhoNcaEfv6e4Vo4i6ANQ8zWGpueWqRgXJo4Pr32+v4fhOf85vp9WA=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,28 @@
|
||||
auth_enabled: false
|
||||
server:
|
||||
http_listen_port: 3100
|
||||
http_tls_config:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
common:
|
||||
path_prefix: /loki
|
||||
replication_factor: 1
|
||||
ring:
|
||||
kvstore:
|
||||
store: inmemory
|
||||
storage:
|
||||
filesystem:
|
||||
chunks_directory: /loki/chunks
|
||||
rules_directory: /loki/rules
|
||||
schema_config:
|
||||
configs:
|
||||
- from: 2024-01-01
|
||||
store: tsdb
|
||||
object_store: filesystem
|
||||
schema: v13
|
||||
index:
|
||||
prefix: index_
|
||||
period: 24h
|
||||
limits_config:
|
||||
allow_structured_metadata: true
|
||||
volume_enabled: true
|
||||
@@ -0,0 +1,37 @@
|
||||
events { worker_connections 1024; }
|
||||
http {
|
||||
limit_req_zone $binary_remote_addr zone=login:10m rate=2r/s;
|
||||
map $uri $login_key { default ""; /api/v1/auth/sessions $binary_remote_addr; }
|
||||
limit_req_zone $login_key zone=login_only:10m rate=2r/s;
|
||||
upstream api_backend {
|
||||
server api1:8443 max_fails=1 fail_timeout=2s;
|
||||
server api2:8443 max_fails=1 fail_timeout=2s;
|
||||
}
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
ssl_certificate /tls/ingress/cert.crt;
|
||||
ssl_certificate_key /tls/ingress/cert.key;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
client_max_body_size 10m;
|
||||
error_page 429 = @limited;
|
||||
location @limited { add_header Retry-After 1 always; default_type application/json; return 429 '{"error":{"code":"rate_limited","message":"Too many requests","request_id":"$request_id"}}'; }
|
||||
location / {
|
||||
limit_req zone=login_only burst=10 nodelay;
|
||||
limit_req_status 429;
|
||||
proxy_pass https://api_backend;
|
||||
proxy_ssl_certificate /tls/lb/cert.crt;
|
||||
proxy_ssl_certificate_key /tls/lb/cert.key;
|
||||
proxy_ssl_trusted_certificate /tls/ca.crt;
|
||||
proxy_ssl_verify on;
|
||||
proxy_ssl_server_name on;
|
||||
proxy_ssl_name api.internal;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_connect_timeout 1s;
|
||||
proxy_read_timeout 15s;
|
||||
proxy_next_upstream error timeout http_502 http_503 http_504;
|
||||
proxy_next_upstream_tries 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
path "secret/data/api" { capabilities = ["read"] }
|
||||
@@ -0,0 +1,9 @@
|
||||
ui = true
|
||||
disable_mlock = true
|
||||
storage "file" { path = "/bao/data" }
|
||||
listener "tcp" {
|
||||
address = "0.0.0.0:8200"
|
||||
tls_cert_file = "/tls/cert.crt"
|
||||
tls_key_file = "/tls/cert.key"
|
||||
}
|
||||
api_addr = "https://bao:8200"
|
||||
@@ -0,0 +1 @@
|
||||
path "secret/data/operator" { capabilities = ["read"] }
|
||||
@@ -0,0 +1 @@
|
||||
path "secret/data/worker" { capabilities = ["read"] }
|
||||
@@ -0,0 +1,48 @@
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
tls:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
processors:
|
||||
memory_limiter:
|
||||
check_interval: 1s
|
||||
limit_mib: 256
|
||||
spike_limit_mib: 64
|
||||
batch:
|
||||
timeout: 5s
|
||||
send_batch_size: 1024
|
||||
exporters:
|
||||
prometheus:
|
||||
endpoint: 0.0.0.0:9464
|
||||
tls:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
namespace: otel
|
||||
resource_to_telemetry_conversion:
|
||||
enabled: true
|
||||
otlp/tempo:
|
||||
endpoint: tempo:4317
|
||||
tls:
|
||||
insecure: false
|
||||
ca_file: /tls/ca.crt
|
||||
otlphttp/loki:
|
||||
endpoint: https://loki:3100/otlp
|
||||
tls:
|
||||
ca_file: /tls/ca.crt
|
||||
service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlp/tempo]
|
||||
metrics:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [prometheus]
|
||||
logs:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlphttp/loki]
|
||||
@@ -0,0 +1,2 @@
|
||||
local all all trust
|
||||
hostssl all all all scram-sha-256
|
||||
@@ -0,0 +1,31 @@
|
||||
groups:
|
||||
- name: messenger-observability
|
||||
rules:
|
||||
- alert: ApiHigh5xxRatio
|
||||
expr: sum(rate(otel_messenger_http_requests_total{http_status_class="5xx"}[5m])) / clamp_min(sum(rate(otel_messenger_http_requests_total[5m])), 0.001) > 0.05
|
||||
for: 2m
|
||||
labels: {severity: warning}
|
||||
annotations:
|
||||
summary: "Доля HTTP 5xx выше 5%"
|
||||
description: "Проверьте API traces и логи по route/request_id. Runbook: REPORT.md#инциденты."
|
||||
- alert: ApiHighP95Latency
|
||||
expr: histogram_quantile(0.95, sum by (le) (rate(otel_messenger_http_request_duration_seconds_bucket[5m]))) > 1
|
||||
for: 3m
|
||||
labels: {severity: warning}
|
||||
annotations:
|
||||
summary: "p95 API выше 1 секунды"
|
||||
description: "Сравните server span с DB/S3 spans и проверьте saturation. Runbook: REPORT.md#инциденты."
|
||||
- alert: WorkerJobFailures
|
||||
expr: sum(rate(otel_messenger_jobs_processed_total{outcome="error"}[5m])) > 0
|
||||
for: 1m
|
||||
labels: {severity: warning}
|
||||
annotations:
|
||||
summary: "Worker фиксирует ошибки обработки"
|
||||
description: "Откройте job.process trace и структурный лог job.failed. Runbook: REPORT.md#инциденты."
|
||||
- alert: TelemetryCollectorUnavailable
|
||||
expr: up{job="otel-collector"} == 0
|
||||
for: 1m
|
||||
labels: {severity: critical}
|
||||
annotations:
|
||||
summary: "Prometheus не видит OTel Collector"
|
||||
description: "Проверьте контейнер Collector и OTLP pipeline. Runbook: REPORT.md#инциденты."
|
||||
@@ -0,0 +1,11 @@
|
||||
global:
|
||||
scrape_interval: 5s
|
||||
evaluation_interval: 5s
|
||||
rule_files: ["/etc/prometheus/alerts.yml"]
|
||||
scrape_configs:
|
||||
- job_name: otel-collector
|
||||
scheme: https
|
||||
tls_config:
|
||||
ca_file: /tls/ca.crt
|
||||
static_configs:
|
||||
- targets: ["otel-collector:9464"]
|
||||
@@ -0,0 +1,3 @@
|
||||
tls_server_config:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
@@ -0,0 +1,12 @@
|
||||
listeners.tcp = none
|
||||
listeners.ssl.default = 5671
|
||||
|
||||
ssl_options.cacertfile = /tls/ca.crt
|
||||
ssl_options.certfile = /tls/server/cert.crt
|
||||
ssl_options.keyfile = /tls/server/cert.key
|
||||
|
||||
ssl_options.verify = verify_none
|
||||
ssl_options.fail_if_no_peer_cert = false
|
||||
|
||||
ssl_options.versions.1 = tlsv1.3
|
||||
ssl_options.versions.2 = tlsv1.2
|
||||
@@ -0,0 +1,16 @@
|
||||
server {
|
||||
listen 8443 ssl;
|
||||
ssl_certificate /tls/server/cert.crt;
|
||||
ssl_certificate_key /tls/server/cert.key;
|
||||
ssl_protocols TLSv1.2 TLSv1.3;
|
||||
|
||||
client_max_body_size 20m;
|
||||
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:8333;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_http_version 1.1;
|
||||
proxy_request_buffering off;
|
||||
proxy_buffering off;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
server:
|
||||
http_listen_port: 3200
|
||||
http_tls_config:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
distributor:
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
tls:
|
||||
cert_file: /tls/server/cert.crt
|
||||
key_file: /tls/server/cert.key
|
||||
ingester:
|
||||
max_block_duration: 5m
|
||||
trace_idle_period: 10s
|
||||
compactor:
|
||||
compaction:
|
||||
block_retention: 48h
|
||||
storage:
|
||||
trace:
|
||||
backend: local
|
||||
wal:
|
||||
path: /var/tempo/wal
|
||||
local:
|
||||
path: /var/tempo/blocks
|
||||
Reference in New Issue
Block a user