From a7836c26d0f9062622963b28a44a3f27c1229afb Mon Sep 17 00:00:00 2001 From: Ankit Anand Date: Wed, 2 Jun 2021 11:45:00 +0530 Subject: [PATCH] kubernetes configs updated --- .../jobs/supervisor/supervisor-config.yaml | 120 ++++++++++-------- deploy/kubernetes/otel-collector/config.yaml | 21 ++- 2 files changed, 78 insertions(+), 63 deletions(-) diff --git a/deploy/kubernetes/jobs/supervisor/supervisor-config.yaml b/deploy/kubernetes/jobs/supervisor/supervisor-config.yaml index 57c3ceb905..53bc5dd143 100644 --- a/deploy/kubernetes/jobs/supervisor/supervisor-config.yaml +++ b/deploy/kubernetes/jobs/supervisor/supervisor-config.yaml @@ -5,64 +5,72 @@ metadata: data: supervisor-spec.json: | { - "type": "kafka", - "dataSchema": { - "dataSource": "flattened_spans", - "parser": { - "type": "string", - "parseSpec": { - "format": "json", - "timestampSpec": { - "column": "StartTimeUnixNano", - "format": "nano" - }, - "dimensionsSpec": { - "dimensions": [ - "TraceId", - "SpanId", - "ParentSpanId", - "Name", - "ServiceName", - "References", - "Tags", - { - "type": "string", - "name": "TagsKeys", - "multiValueHandling": "ARRAY" - }, - { - "type": "string", - "name": "TagsValues", - "multiValueHandling": "ARRAY" - }, - { "name": "DurationNano", "type": "Long" }, - { "name": "Kind", "type": "int" }, - { "name": "StatusCode", "type": "int" } - ] + "type": "kafka", + "dataSchema": { + "dataSource": "flattened_spans", + "parser": { + "type": "string", + "parseSpec": { + "format": "json", + "timestampSpec": { + "column": "StartTimeUnixNano", + "format": "nano" + }, + "dimensionsSpec": { + "dimensions": [ + "TraceId", + "SpanId", + "ParentSpanId", + "Name", + "ServiceName", + "References", + "Tags", + "ExternalHttpMethod", + "ExternalHttpUrl", + "Component", + "DBSystem", + "DBName", + "DBOperation", + "PeerService", + { + "type": "string", + "name": "TagsKeys", + "multiValueHandling": "ARRAY" + }, + { + "type": "string", + "name": "TagsValues", + "multiValueHandling": "ARRAY" + }, + { "name": "DurationNano", "type": "Long" }, + { "name": "Kind", "type": "int" }, + { "name": "StatusCode", "type": "int" } + ] + } } + }, + "metricsSpec" : [ + { "type": "quantilesDoublesSketch", "name": "QuantileDuration", "fieldName": "DurationNano" } + ], + "granularitySpec": { + "type": "uniform", + "segmentGranularity": "DAY", + "queryGranularity": "NONE", + "rollup": false } }, - "metricsSpec" : [ - { "type": "quantilesDoublesSketch", "name": "QuantileDuration", "fieldName": "DurationNano" } - ], - "granularitySpec": { - "type": "uniform", - "segmentGranularity": "DAY", - "queryGranularity": "NONE", - "rollup": false - } - }, - "tuningConfig": { - "type": "kafka", - "reportParseExceptions": true - }, - "ioConfig": { - "topic": "flattened_spans", - "replicas": 1, - "taskDuration": "PT20M", - "completionTimeout": "PT30M", - "consumerProperties": { - "bootstrap.servers": "signoz-kafka:9092" + "tuningConfig": { + "type": "kafka", + "reportParseExceptions": true + }, + "ioConfig": { + "topic": "flattened_spans", + "replicas": 1, + "taskDuration": "PT20M", + "completionTimeout": "PT30M", + "consumerProperties": { + "bootstrap.servers": "signoz-kafka:9092" + } } } - } + diff --git a/deploy/kubernetes/otel-collector/config.yaml b/deploy/kubernetes/otel-collector/config.yaml index 5750538b0d..8e4f4d8a01 100644 --- a/deploy/kubernetes/otel-collector/config.yaml +++ b/deploy/kubernetes/otel-collector/config.yaml @@ -8,14 +8,14 @@ metadata: data: otel-collector-config: | receivers: + otlp: + protocols: + grpc: + http: jaeger: protocols: grpc: thrift_http: - otlp: - protocols: - grpc: - http: processors: batch: send_batch_size: 1000 @@ -36,9 +36,16 @@ data: health_check: {} zpages: {} exporters: - kafka: + kafka/traces: brokers: - signoz-kafka:9092 + topic: 'otlp_spans' + protocol_version: 2.0.0 + + kafka/metrics: + brokers: + - signoz-kafka:9092 + topic: 'otlp_metrics' protocol_version: 2.0.0 service: extensions: [health_check, zpages] @@ -46,8 +53,8 @@ data: traces: receivers: [jaeger, otlp] processors: [memory_limiter, batch, queued_retry] - exporters: [kafka] + exporters: [kafka/traces] metrics: receivers: [otlp] processors: [batch] - exporters: [kafka] \ No newline at end of file + exporters: [kafka/metrics] \ No newline at end of file