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:
Prashant Shahi 2022-11-15 20:33:56 +05:30 committed by GitHub
parent 622943645f
commit d615d7a9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 10 deletions

View File

@ -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 ]

View File

@ -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:

View File

@ -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: