-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sumologic-mock): add full support to instrumentation (#3544)
* feat(sumologic-mock): add full support for instrumentation Signed-off-by: Dominik Rosiek <[email protected]> * chore: changelog Signed-off-by: Dominik Rosiek <[email protected]> * chore: add missing value to README.md Signed-off-by: Dominik Rosiek <[email protected]> * Update .changelog/3544.changed.txt * Apply suggestions from code review --------- Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
1 parent
8ea6b68
commit a5a6525
Showing
16 changed files
with
612 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
feat(sumologic-mock): add full support to instrumentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ldenfile/otelcol-instrumentation-config/traces-gateway-disabled.sumologic-mock.input.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
otelcolInstrumentation: | ||
sourceMetadata: | ||
excludeNamespaceRegex: "kube\\s+" | ||
excludePodRegex: "^foo.*" | ||
excludeContainerRegex: "[123+]bar$|xyz" | ||
excludeHostRegex: hhh123 | ||
|
||
tracesGateway: | ||
enabled: false | ||
|
||
debug: | ||
instrumentation: | ||
otelcolInstrumentation: | ||
print: true |
177 changes: 177 additions & 0 deletions
177
...denfile/otelcol-instrumentation-config/traces-gateway-disabled.sumologic-mock.output.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
--- | ||
# Source: sumologic/templates/instrumentation/otelcol-instrumentation/configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: RELEASE-NAME-sumologic-otelcol-instrumentation | ||
namespace: sumologic | ||
labels: | ||
app: RELEASE-NAME-sumologic-otelcol-instrumentation | ||
chart: "sumologic-%CURRENT_CHART_VERSION%" | ||
release: "RELEASE-NAME" | ||
heritage: "Helm" | ||
data: | ||
otelcol.instrumentation.conf.yaml: | | ||
exporters: | ||
debug: | ||
verbosity: detailed | ||
loadbalancing: | ||
protocol: | ||
otlp: | ||
sending_queue: | ||
enabled: true | ||
num_consumers: 10 | ||
queue_size: 10000 | ||
timeout: 10s | ||
tls: | ||
insecure: true | ||
resolver: | ||
dns: | ||
hostname: RELEASE-NAME-sumologic-traces-sampler-headless.sumologic | ||
port: 4317 | ||
sumologic/metrics: | ||
client: k8s_%CURRENT_CHART_VERSION% | ||
compress_encoding: gzip | ||
endpoint: ${SUMO_ENDPOINT_DEFAULT_METRICS_SOURCE} | ||
log_format: text | ||
max_request_body_size: 1048576 | ||
metric_format: prometheus | ||
retry_on_failure: | ||
enabled: true | ||
initial_interval: 5s | ||
max_elapsed_time: 120s | ||
max_interval: 30s | ||
sending_queue: | ||
enabled: false | ||
num_consumers: 10 | ||
queue_size: 5000 | ||
timeout: 5s | ||
extensions: | ||
health_check: {} | ||
memory_ballast: | ||
size_mib: 512 | ||
pprof: {} | ||
processors: | ||
batch: | ||
send_batch_max_size: 512 | ||
send_batch_size: 256 | ||
timeout: 5s | ||
k8s_tagger: | ||
extract: | ||
annotations: | ||
- key: '*' | ||
tag_name: k8s.pod.annotation.%s | ||
labels: | ||
- key: '*' | ||
tag_name: k8s.pod.label.%s | ||
metadata: | ||
- containerId | ||
- containerName | ||
- daemonSetName | ||
- deploymentName | ||
- hostName | ||
- namespace | ||
- nodeName | ||
- podId | ||
- podName | ||
- replicaSetName | ||
- serviceName | ||
- statefulSetName | ||
namespace_labels: | ||
- key: '*' | ||
tag_name: k8s.namespace.label.%s | ||
owner_lookup_enabled: true | ||
passthrough: false | ||
memory_limiter: | ||
check_interval: 5s | ||
limit_percentage: 75 | ||
spike_limit_percentage: 20 | ||
resource: | ||
attributes: | ||
- action: upsert | ||
key: k8s.cluster.name | ||
value: kubernetes | ||
resourcedetection: | ||
detectors: | ||
- system | ||
override: false | ||
timeout: 10s | ||
source: | ||
annotation_prefix: k8s.pod.annotation. | ||
collector: kubernetes | ||
exclude: | ||
k8s.container.name: '[123+]bar$|xyz' | ||
k8s.host.name: hhh123 | ||
k8s.namespace.name: kube\s+ | ||
k8s.pod.name: ^foo.* | ||
pod_key: k8s.pod.name | ||
pod_name_key: k8s.pod.pod_name | ||
pod_template_hash_key: k8s.pod.label.pod-template-hash | ||
source_category: '%{k8s.namespace.name}/%{k8s.pod.pod_name}' | ||
source_category_prefix: kubernetes/ | ||
source_category_replace_dash: / | ||
source_host: '%{k8s.pod.hostname}' | ||
source_name: '%{k8s.namespace.name}.%{k8s.pod.pod_name}.%{k8s.container.name}' | ||
receivers: | ||
jaeger: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:14250 | ||
thrift_binary: | ||
endpoint: 0.0.0.0:6832 | ||
thrift_compact: | ||
endpoint: 0.0.0.0:6831 | ||
thrift_http: | ||
endpoint: 0.0.0.0:14268 | ||
opencensus: | ||
endpoint: 0.0.0.0:55678 | ||
otlp: | ||
protocols: | ||
grpc: | ||
endpoint: 0.0.0.0:4317 | ||
http: | ||
endpoint: 0.0.0.0:4318 | ||
otlp/deprecated: | ||
protocols: | ||
http: | ||
endpoint: 0.0.0.0:55681 | ||
zipkin: | ||
endpoint: 0.0.0.0:9411 | ||
service: | ||
extensions: | ||
- health_check | ||
- memory_ballast | ||
- pprof | ||
pipelines: | ||
metrics: | ||
exporters: | ||
- sumologic/metrics | ||
- debug | ||
processors: | ||
- memory_limiter | ||
- k8s_tagger | ||
- source | ||
- resource | ||
- batch | ||
receivers: | ||
- otlp | ||
- otlp/deprecated | ||
traces: | ||
exporters: | ||
- loadbalancing | ||
- debug | ||
processors: | ||
- memory_limiter | ||
- k8s_tagger | ||
- source | ||
- resource | ||
- batch | ||
receivers: | ||
- jaeger | ||
- opencensus | ||
- otlp | ||
- otlp/deprecated | ||
- zipkin | ||
telemetry: | ||
logs: | ||
level: info |
14 changes: 14 additions & 0 deletions
14
...oldenfile/otelcol-instrumentation-config/traces-gateway-enabled.sumologic-mock.input.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
otelcolInstrumentation: | ||
sourceMetadata: | ||
excludeNamespaceRegex: "kube\\s+" | ||
excludePodRegex: "^foo.*" | ||
excludeContainerRegex: "[123+]bar$|xyz" | ||
excludeHostRegex: hhh123 | ||
|
||
tracesGateway: | ||
enabled: false | ||
|
||
debug: | ||
instrumentation: | ||
otelcolInstrumentation: | ||
print: true |
Oops, something went wrong.