-
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 events (#3545)
* feat(sumologic-mock): add full support to events Signed-off-by: Dominik Rosiek <[email protected]> * chore: changelog Signed-off-by: Dominik Rosiek <[email protected]> --------- Signed-off-by: Dominik Rosiek <[email protected]>
- Loading branch information
1 parent
b1c5c45
commit 8ea6b68
Showing
13 changed files
with
152 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 events |
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
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
6 changes: 6 additions & 0 deletions
6
tests/helm/testdata/goldenfile/events_otc/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,6 @@ | ||
debug: | ||
sumologicMock: | ||
enabled: true | ||
events: | ||
print: true | ||
forwardToSumologicMock: true |
91 changes: 91 additions & 0 deletions
91
tests/helm/testdata/goldenfile/events_otc/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,91 @@ | ||
--- | ||
# Source: sumologic/templates/events/otelcol/configmap.yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: RELEASE-NAME-sumologic-otelcol-events | ||
namespace: sumologic | ||
labels: | ||
app: RELEASE-NAME-sumologic-otelcol-events | ||
chart: "sumologic-%CURRENT_CHART_VERSION%" | ||
release: "RELEASE-NAME" | ||
heritage: "Helm" | ||
data: | ||
config.yaml: | | ||
exporters: | ||
debug: | ||
verbosity: detailed | ||
sumologic: | ||
clear_logs_timestamp: false | ||
client: k8s_%CURRENT_CHART_VERSION% | ||
endpoint: ${SUMO_ENDPOINT_DEFAULT_OTLP_EVENTS_SOURCE} | ||
log_format: otlp | ||
sending_queue: | ||
enabled: true | ||
storage: file_storage | ||
sumologic/sumologic-mock: | ||
clear_logs_timestamp: false | ||
client: k8s_%CURRENT_CHART_VERSION% | ||
endpoint: http://RELEASE-NAME-sumologic-mock.sumologic:3000/receiver | ||
log_format: otlp | ||
sending_queue: | ||
enabled: true | ||
extensions: | ||
file_storage: | ||
directory: /var/lib/storage/events | ||
timeout: 10s | ||
health_check: {} | ||
pprof: {} | ||
processors: | ||
batch: | ||
send_batch_max_size: 2048 | ||
send_batch_size: 1024 | ||
timeout: 1s | ||
memory_limiter: | ||
check_interval: 1s | ||
limit_percentage: 70 | ||
spike_limit_percentage: 20 | ||
resource/add_cluster: | ||
attributes: | ||
- action: upsert | ||
key: cluster | ||
value: kubernetes | ||
source: | ||
collector: kubernetes | ||
source_category: kubernetes/events | ||
source_category_prefix: "" | ||
source_category_replace_dash: / | ||
source_name: events | ||
sumologic: | ||
add_cloud_namespace: false | ||
transform/add_timestamp: | ||
log_statements: | ||
- context: log | ||
statements: | ||
- set(time, Now()) where time_unix_nano == 0 | ||
- set(attributes["timestamp"], Int(time_unix_nano / 1000000)) | ||
receivers: | ||
raw_k8s_events: {} | ||
service: | ||
extensions: | ||
- health_check | ||
- file_storage | ||
- pprof | ||
pipelines: | ||
logs/events: | ||
exporters: | ||
- sumologic | ||
- debug | ||
- sumologic/sumologic-mock | ||
processors: | ||
- memory_limiter | ||
- resource/add_cluster | ||
- source | ||
- sumologic | ||
- transform/add_timestamp | ||
- batch | ||
receivers: | ||
- raw_k8s_events | ||
telemetry: | ||
logs: | ||
level: info |
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 |
---|---|---|
|
@@ -22,3 +22,5 @@ debug: | |
stopLogsIngestion: true | ||
tracesSampler: | ||
stopLogsIngestion: true | ||
events: | ||
stopLogsIngestion: true |
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