Add ci/cd and fix multiple pods issues
This commit is contained in:
70
infrastructure/ci-cd/monitoring/otel-collector.yaml
Normal file
70
infrastructure/ci-cd/monitoring/otel-collector.yaml
Normal file
@@ -0,0 +1,70 @@
|
||||
# OpenTelemetry Collector for Bakery-IA CI/CD Monitoring
|
||||
# This collects metrics and traces from Tekton pipelines
|
||||
|
||||
apiVersion: opentelemetry.io/v1alpha1
|
||||
kind: OpenTelemetryCollector
|
||||
metadata:
|
||||
name: tekton-otel
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
config: |
|
||||
receivers:
|
||||
otlp:
|
||||
protocols:
|
||||
grpc:
|
||||
endpoint: 0.0.0.0:4317
|
||||
http:
|
||||
endpoint: 0.0.0.0:4318
|
||||
prometheus:
|
||||
config:
|
||||
scrape_configs:
|
||||
- job_name: 'tekton-pipelines'
|
||||
scrape_interval: 30s
|
||||
static_configs:
|
||||
- targets: ['tekton-pipelines-controller.tekton-pipelines.svc.cluster.local:9090']
|
||||
|
||||
processors:
|
||||
batch:
|
||||
timeout: 5s
|
||||
send_batch_size: 1000
|
||||
memory_limiter:
|
||||
check_interval: 2s
|
||||
limit_percentage: 75
|
||||
spike_limit_percentage: 20
|
||||
|
||||
exporters:
|
||||
otlp:
|
||||
endpoint: "signoz-otel-collector.monitoring.svc.cluster.local:4317"
|
||||
tls:
|
||||
insecure: true
|
||||
retry_on_failure:
|
||||
enabled: true
|
||||
initial_interval: 5s
|
||||
max_interval: 30s
|
||||
max_elapsed_time: 300s
|
||||
logging:
|
||||
logLevel: debug
|
||||
|
||||
service:
|
||||
pipelines:
|
||||
traces:
|
||||
receivers: [otlp]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlp, logging]
|
||||
metrics:
|
||||
receivers: [otlp, prometheus]
|
||||
processors: [memory_limiter, batch]
|
||||
exporters: [otlp, logging]
|
||||
telemetry:
|
||||
logs:
|
||||
level: "info"
|
||||
encoding: "json"
|
||||
|
||||
mode: deployment
|
||||
resources:
|
||||
limits:
|
||||
cpu: 500m
|
||||
memory: 512Mi
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 256Mi
|
||||
Reference in New Issue
Block a user