mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 13:39:00 +08:00
fix: 🐛 resolve redundant metrics issue (#1946)
Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
This commit is contained in:
parent
126c9238ba
commit
57d28be9f5
@ -64,7 +64,9 @@ receivers:
|
|||||||
- job_name: otel-collector
|
- job_name: otel-collector
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:8888
|
- localhost:8888
|
||||||
|
labels:
|
||||||
|
job_name: otel-collector
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
batch:
|
batch:
|
||||||
@ -104,11 +106,12 @@ exporters:
|
|||||||
clickhousetraces:
|
clickhousetraces:
|
||||||
datasource: tcp://clickhouse:9000/?database=signoz_traces
|
datasource: tcp://clickhouse:9000/?database=signoz_traces
|
||||||
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
|
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
|
||||||
|
|
||||||
clickhousemetricswrite:
|
clickhousemetricswrite:
|
||||||
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
||||||
resource_to_telemetry_conversion:
|
resource_to_telemetry_conversion:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
clickhousemetricswrite/prometheus:
|
||||||
|
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: 0.0.0.0:8889
|
endpoint: 0.0.0.0:8889
|
||||||
# logging: {}
|
# logging: {}
|
||||||
@ -147,9 +150,13 @@ service:
|
|||||||
processors: [batch]
|
processors: [batch]
|
||||||
exporters: [clickhousemetricswrite]
|
exporters: [clickhousemetricswrite]
|
||||||
metrics/generic:
|
metrics/generic:
|
||||||
receivers: [hostmetrics, prometheus]
|
receivers: [hostmetrics]
|
||||||
processors: [resourcedetection, batch]
|
processors: [resourcedetection, batch]
|
||||||
exporters: [clickhousemetricswrite]
|
exporters: [clickhousemetricswrite]
|
||||||
|
metrics/prometheus:
|
||||||
|
receivers: [prometheus]
|
||||||
|
processors: [batch]
|
||||||
|
exporters: [clickhousemetricswrite/prometheus]
|
||||||
metrics/spanmetrics:
|
metrics/spanmetrics:
|
||||||
receivers: [otlp/spanmetrics]
|
receivers: [otlp/spanmetrics]
|
||||||
exporters: [prometheus]
|
exporters: [prometheus]
|
||||||
|
@ -7,7 +7,9 @@ receivers:
|
|||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:8888
|
- localhost:8888
|
||||||
|
labels:
|
||||||
|
job_name: otel-collector-metrics
|
||||||
# SigNoz span metrics
|
# SigNoz span metrics
|
||||||
- job_name: signozspanmetrics-collector
|
- job_name: signozspanmetrics-collector
|
||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
|
@ -64,7 +64,10 @@ receivers:
|
|||||||
- job_name: otel-collector
|
- job_name: otel-collector
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:8888
|
- localhost:8888
|
||||||
|
labels:
|
||||||
|
job_name: otel-collector
|
||||||
|
|
||||||
|
|
||||||
processors:
|
processors:
|
||||||
batch:
|
batch:
|
||||||
@ -112,11 +115,12 @@ exporters:
|
|||||||
clickhousetraces:
|
clickhousetraces:
|
||||||
datasource: tcp://clickhouse:9000/?database=signoz_traces
|
datasource: tcp://clickhouse:9000/?database=signoz_traces
|
||||||
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
|
docker_multi_node_cluster: ${DOCKER_MULTI_NODE_CLUSTER}
|
||||||
|
|
||||||
clickhousemetricswrite:
|
clickhousemetricswrite:
|
||||||
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
||||||
resource_to_telemetry_conversion:
|
resource_to_telemetry_conversion:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
clickhousemetricswrite/prometheus:
|
||||||
|
endpoint: tcp://clickhouse:9000/?database=signoz_metrics
|
||||||
prometheus:
|
prometheus:
|
||||||
endpoint: 0.0.0.0:8889
|
endpoint: 0.0.0.0:8889
|
||||||
# logging: {}
|
# logging: {}
|
||||||
@ -151,9 +155,13 @@ service:
|
|||||||
processors: [batch]
|
processors: [batch]
|
||||||
exporters: [clickhousemetricswrite]
|
exporters: [clickhousemetricswrite]
|
||||||
metrics/generic:
|
metrics/generic:
|
||||||
receivers: [hostmetrics, prometheus]
|
receivers: [hostmetrics]
|
||||||
processors: [resourcedetection, batch]
|
processors: [resourcedetection, batch]
|
||||||
exporters: [clickhousemetricswrite]
|
exporters: [clickhousemetricswrite]
|
||||||
|
metrics/prometheus:
|
||||||
|
receivers: [prometheus]
|
||||||
|
processors: [batch]
|
||||||
|
exporters: [clickhousemetricswrite/prometheus]
|
||||||
metrics/spanmetrics:
|
metrics/spanmetrics:
|
||||||
receivers: [otlp/spanmetrics]
|
receivers: [otlp/spanmetrics]
|
||||||
exporters: [prometheus]
|
exporters: [prometheus]
|
||||||
|
@ -11,7 +11,9 @@ receivers:
|
|||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- localhost:8888
|
- localhost:8888
|
||||||
|
labels:
|
||||||
|
job_name: otel-collector-metrics
|
||||||
# SigNoz span metrics
|
# SigNoz span metrics
|
||||||
- job_name: signozspanmetrics-collector
|
- job_name: signozspanmetrics-collector
|
||||||
scrape_interval: 60s
|
scrape_interval: 60s
|
||||||
|
Loading…
x
Reference in New Issue
Block a user