-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor filter-container-metrics example to add-filter-processor and…
… expand content
- Loading branch information
Showing
14 changed files
with
678 additions
and
66 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,7 @@ | ||
# Example of chart configuration | ||
|
||
## Filter Processor | ||
The | ||
[filter processor](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/filterprocessor#filter-processor) | ||
determines when telemetry data should be dropped. If any condition | ||
is met, the telemetry data is dropped. |
82 changes: 82 additions & 0 deletions
82
examples/add-filter-processor/add-filter-processor-values.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,82 @@ | ||
clusterName: CHANGEME | ||
splunkObservability: | ||
realm: CHANGEME | ||
accessToken: CHANGEME | ||
metricsEnabled: true | ||
tracesEnabled: true | ||
logsEnabled: true | ||
|
||
agent: | ||
config: | ||
processors: | ||
# Exclude specific metrics from containers named 'containerXName' or 'containerYName' | ||
filter/exclude_metrics_from_container: | ||
metrics: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.container.name | ||
value: '^(containerXName|containerYName)$' | ||
# Exclude logs from pods named 'podNameX' | ||
filter/exclude_logs_from_pod: | ||
logs: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.pod.name | ||
value: '^(podNameX)$' | ||
# Exclude logs from nodes named 'nodeNameX' | ||
filter/exclude_logs_from_node: | ||
logs: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.node.name | ||
value: '^(nodeNameX)$' | ||
# Exclude spans from traces for services housed in containers named 'containerXName' or 'containerYName' | ||
filter/exclude_spans_from_traces_from_container: | ||
spans: | ||
exclude: | ||
match_type: regexp | ||
attributes: | ||
- key: k8s.container.name | ||
value: '^(containerXName|containerYName)$' | ||
# Exclude all telemetry data (metrics, logs, traces) from a namespace named 'namespaceX' | ||
filter/exclude_all_telemetry_data_from_namespace: | ||
logs: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.namespace.name | ||
value: '^(namespaceX)$' | ||
metrics: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.namespace.name | ||
value: '^(namespaceX)$' | ||
traces: | ||
span: | ||
- 'attributes["k8s.namespace.name"] != "namespaceX"' | ||
# Exclude metrics from a cluster named 'clusterX' | ||
filter/exclude_metrics_from_cluster: | ||
metrics: | ||
exclude: | ||
match_type: regexp | ||
resource_attributes: | ||
- key: k8s.cluster.name | ||
value: '^(clusterX)$' | ||
# Define the data processing pipelines for logs, metrics, and traces | ||
service: | ||
pipelines: | ||
logs: | ||
processors: | ||
- memory_limiter | ||
- k8sattributes | ||
- filter/logs | ||
- batch | ||
- resourcedetection | ||
- resource | ||
- resource/logs | ||
- filter/exclude_logs_from_pod | ||
- filter/exclude_logs_from_node |
File renamed without changes.
File renamed without changes.
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
24 changes: 24 additions & 0 deletions
24
examples/add-filter-processor/rendered_manifests/configmap-fluentd-json.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,24 @@ | ||
--- | ||
# Source: splunk-otel-collector/templates/configmap-fluentd-json.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: default-splunk-otel-collector-fluentd-json | ||
labels: | ||
app.kubernetes.io/name: splunk-otel-collector | ||
helm.sh/chart: splunk-otel-collector-0.78.0 | ||
app.kubernetes.io/managed-by: Helm | ||
app.kubernetes.io/instance: default | ||
app.kubernetes.io/version: "0.78.1" | ||
app: splunk-otel-collector | ||
chart: splunk-otel-collector-0.78.0 | ||
release: default | ||
heritage: Helm | ||
data: | ||
source.containers.parse.conf: |- | ||
@type json | ||
time_format %Y-%m-%dT%H:%M:%S.%NZ | ||
output.filter.conf: "" | ||
|
||
output.transform.conf: "" |
Oops, something went wrong.