mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-11 23:49:00 +08:00
Updating collection interval in otelcol
configuration files (#1720)
* chore: 🔧 set collection interval of hostmetrics to 30s while others to 60s
This commit is contained in:
parent
622943645f
commit
d615d7a9e3
@ -47,7 +47,7 @@ receivers:
|
|||||||
# thrift_binary:
|
# thrift_binary:
|
||||||
# endpoint: 0.0.0.0:6832
|
# endpoint: 0.0.0.0:6832
|
||||||
hostmetrics:
|
hostmetrics:
|
||||||
collection_interval: 60s
|
collection_interval: 30s
|
||||||
scrapers:
|
scrapers:
|
||||||
cpu: {}
|
cpu: {}
|
||||||
load: {}
|
load: {}
|
||||||
@ -58,7 +58,7 @@ receivers:
|
|||||||
prometheus:
|
prometheus:
|
||||||
config:
|
config:
|
||||||
global:
|
global:
|
||||||
scrape_interval: 30s
|
scrape_interval: 60s
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# otel-collector internal metrics
|
# otel-collector internal metrics
|
||||||
- job_name: otel-collector
|
- job_name: otel-collector
|
||||||
@ -75,7 +75,6 @@ processors:
|
|||||||
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
|
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
|
||||||
detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure.
|
detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure.
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
override: false
|
|
||||||
signozspanmetrics/prometheus:
|
signozspanmetrics/prometheus:
|
||||||
metrics_exporter: prometheus
|
metrics_exporter: prometheus
|
||||||
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ]
|
latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ]
|
||||||
|
@ -47,7 +47,7 @@ receivers:
|
|||||||
# thrift_binary:
|
# thrift_binary:
|
||||||
# endpoint: 0.0.0.0:6832
|
# endpoint: 0.0.0.0:6832
|
||||||
hostmetrics:
|
hostmetrics:
|
||||||
collection_interval: 60s
|
collection_interval: 30s
|
||||||
scrapers:
|
scrapers:
|
||||||
cpu: {}
|
cpu: {}
|
||||||
load: {}
|
load: {}
|
||||||
@ -58,7 +58,7 @@ receivers:
|
|||||||
prometheus:
|
prometheus:
|
||||||
config:
|
config:
|
||||||
global:
|
global:
|
||||||
scrape_interval: 30s
|
scrape_interval: 60s
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# otel-collector internal metrics
|
# otel-collector internal metrics
|
||||||
- job_name: otel-collector
|
- job_name: otel-collector
|
||||||
@ -99,7 +99,6 @@ processors:
|
|||||||
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
|
# Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
|
||||||
detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure.
|
detectors: [env, system] # include ec2 for AWS, gce for GCP and azure for Azure.
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
override: false
|
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
health_check:
|
health_check:
|
||||||
|
@ -47,7 +47,7 @@ receivers:
|
|||||||
# thrift_binary:
|
# thrift_binary:
|
||||||
# endpoint: 0.0.0.0:6832
|
# endpoint: 0.0.0.0:6832
|
||||||
hostmetrics:
|
hostmetrics:
|
||||||
collection_interval: 60s
|
collection_interval: 30s
|
||||||
scrapers:
|
scrapers:
|
||||||
cpu: {}
|
cpu: {}
|
||||||
load: {}
|
load: {}
|
||||||
@ -58,11 +58,10 @@ receivers:
|
|||||||
prometheus:
|
prometheus:
|
||||||
config:
|
config:
|
||||||
global:
|
global:
|
||||||
scrape_interval: 30s
|
scrape_interval: 60s
|
||||||
scrape_configs:
|
scrape_configs:
|
||||||
# otel-collector internal metrics
|
# otel-collector internal metrics
|
||||||
- job_name: otel-collector
|
- job_name: otel-collector
|
||||||
scrape_interval: 60s
|
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets:
|
- targets:
|
||||||
- otel-collector:8888
|
- otel-collector:8888
|
||||||
@ -99,7 +98,6 @@ processors:
|
|||||||
resourcedetection:
|
resourcedetection:
|
||||||
detectors: [env, system]
|
detectors: [env, system]
|
||||||
timeout: 2s
|
timeout: 2s
|
||||||
override: false
|
|
||||||
|
|
||||||
extensions:
|
extensions:
|
||||||
health_check:
|
health_check:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user