Skip to content

Commit

Permalink
port opentelemetry operator (#358)
Browse files Browse the repository at this point in the history
* port opentelemetry operator

* Add the missed preload_images and required field
  • Loading branch information
THUzxj authored Apr 17, 2024
1 parent 92fb7c3 commit 15ee26c
Show file tree
Hide file tree
Showing 7 changed files with 26,883 additions and 0 deletions.
5,837 changes: 5,837 additions & 0 deletions data/opentelemetry-operator/cert-manager.yaml

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions data/opentelemetry-operator/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"deploy": {
"steps": [
{
"apply": {
"file": "data/opentelemetry-operator/cert-manager.yaml",
"namespace": null
}
},
{
"apply": {
"file": "data/opentelemetry-operator/opentelemetry-operator.yaml",
"operator": true,
"namespace": "opentelemetry-operator-system",
"operator_container_name": "manager"
}
}
]
},
"crd_name": "opentelemetrycollectors.opentelemetry.io",
"seed_custom_resource": "data/opentelemetry-operator/cr.yaml",
"example_dir": "data/opentelemetry-operator/examples"
}
7,969 changes: 7,969 additions & 0 deletions data/opentelemetry-operator/context.json

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions data/opentelemetry-operator/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: test-cluster
spec:
config: |
receivers:
otlp:
protocols:
grpc:
http:
processors:
memory_limiter:
check_interval: 1s
limit_percentage: 75
spike_limit_percentage: 15
batch:
send_batch_size: 10000
timeout: 10s
exporters:
debug:
service:
pipelines:
traces:
receivers: [otlp]
processors: []
exporters: [debug]
33 changes: 33 additions & 0 deletions data/opentelemetry-operator/examples/target-allocator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: test-cluster
spec:
mode: statefulset
targetAllocator:
enabled: true
config: |
receivers:
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
scrape_interval: 10s
static_configs:
- targets: [ '0.0.0.0:8888' ]
metric_relabel_configs:
- action: labeldrop
regex: (id|name)
- action: labelmap
regex: label_(.+)
replacement: $$1
exporters:
debug:
service:
pipelines:
metrics:
receivers: [prometheus]
processors: []
exporters: [debug]
25 changes: 25 additions & 0 deletions data/opentelemetry-operator/examples/using-prometheus.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: collector-with-ta-prometheus-cr
spec:
mode: statefulset
targetAllocator:
enabled: true
serviceAccount: everything-prometheus-operator-needs
prometheusCR:
enabled: true
config: |
receivers:
prometheus:
config:
exporters:
debug:
service:
pipelines:
metrics:
receivers: [prometheus]
processors: []
exporters: [debug]
Loading

0 comments on commit 15ee26c

Please sign in to comment.