Skip to content

Commit 02955fc

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 7b9e0b0 + dac2e7c commit 02955fc

File tree

17 files changed

+294
-2
lines changed

17 files changed

+294
-2
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,10 @@ local-hosting/multipass/terraform.tfvars
5757
local-hosting/multipass/ubuntu-cloudinit.yml
5858
workshop/aws/ec2/terraform.tfvars copy.template
5959
workshop/profiling/doorgame/*
60+
content/en/ninja-workshops/8-advanced-otel/otelcol_darwin_arm64_splunk
61+
content/en/ninja-workshops/8-advanced-otel/otelcol-contrib
62+
workshop/ninja/advanced otel/gateway/otelcol_darwin_arm64_splunk
63+
workshop/ninja/advanced otel/gateway/otelcol-contrib
64+
workshop/tagging/creditcheckservice-java/target/*
65+
workshop/tagging/creditcheckservice-java-with-tags/target/*
66+
agent.out

content/en/ninja-workshops/7-dashboards-detectors/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
title: Dashboard & Detector Workshop
33
description: The following workshops introduce you to building Dashboards & Detectors
4-
Authors: ["Pieter Hagen"]
54
weight: 7
65
archetype: chapter
76
authors: ["Pieter Hagen"]
87
time: 45 minutes
8+
draft: true
99
---
1010

11-
The goal of this workshop is to introduce you to the concepts of building Dashboards and Detectors using the Splunk Observability suite.
11+
The goal of this workshop is to introduce you to the concepts of building Dashboards and Detectors using the Splunk Observability suite.
1212

1313
This workshop scenario is using existing demo data that is available in the Splunk Observability Suite. The Workshop can be completed on any trail or production Organization you have access too.
1414

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Advanced otel building Dashboards & Detectors
3+
description: The following workshops introduce you to advanced otel
4+
weight: 8
5+
archetype: chapter
6+
authors: ["Pieter Hagen", "Robert Castley"]
7+
time: 45 minutes
8+
draft: true
9+
---
10+
11+
The goal of this workshop is to introduce you to the concepts of ....
12+
13+
### Agenda
14+
15+
**** Setting up agent as and via Gateway
16+
* Adding different log files https://github.com/signalfx/splunk-otel-collector/tree/main/examples/otel-logs-routing
17+
**** * set up resilience, (network outage etc) https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/examples/fault-tolerant-logs-collection
18+
* Using processors
19+
- filtering out noise (health checks)
20+
- removing specific tags
21+
- adding meta data [log-enrichment](https://github.com/signalfx/splunk-otel-collector/blob/main/examples/log-enrichment/otel-collector-config.yml)
22+
* Sampling
23+
**** * sending to different org conditionally https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/connector/routingconnector/README.md
24+
**** Get Data from collectd [collectd] (https://github.com/signalfx/splunk-otel-collector/tree/main/examples/collectd)
25+
* otel bin
26+
---
27+
28+
<!-- {{% children containerstyle="ul" depth="1" description="true" %}} -->
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
grpc:
5+
endpoint: "0.0.0.0:4317"
6+
http:
7+
endpoint: "0.0.0.0:4318"
8+
nop:
9+
10+
processors:
11+
batch:
12+
metadata_keys:
13+
- X-SF-Token
14+
memory_limiter:
15+
check_interval: 2s
16+
limit_mib: 512
17+
resourcedetection:
18+
detectors: [gcp, ecs, ec2, azure, system]
19+
override: true
20+
resource/add_mode:
21+
attributes:
22+
- action: insert
23+
value: "agent"
24+
key: otelcol.service.mode
25+
filter:
26+
error_mode: ignore
27+
metrics:
28+
datapoint:
29+
- metric.name == "thiswillbedropped" and value_int == 4
30+
31+
exporters:
32+
debug:
33+
verbosity: detailed
34+
file:
35+
path: ./agent.out
36+
37+
service:
38+
pipelines:
39+
traces:
40+
receivers: [otlp]
41+
processors:
42+
- memory_limiter
43+
- batch
44+
exporters: [file]
45+
metrics:
46+
receivers: [ otlp]
47+
processors: [memory_limiter, batch]
48+
exporters: [file]
49+
logs:
50+
receivers: [otlp]
51+
processors:
52+
- memory_limiter
53+
- batch
54+
- resourcedetection
55+
exporters: [file]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
receivers:
2+
otlp:
3+
protocols:
4+
grpc:
5+
endpoint: "0.0.0.0:5317"
6+
http:
7+
endpoint: "0.0.0.0:5318"
8+
9+
processors:
10+
batch:
11+
metadata_keys:
12+
- X-SF-Token
13+
memory_limiter:
14+
check_interval: 2s
15+
limit_mib: 512
16+
resource/add_mode:
17+
attributes:
18+
- action: insert
19+
value: "gateway"
20+
key: otelcol.service.mode
21+
resourcedetection/internal:
22+
detectors: [gcp, ecs, ec2, azure, system]
23+
override: true
24+
25+
exporters:
26+
debug:
27+
verbosity: detailed
28+
29+
service:
30+
pipelines:
31+
traces:
32+
receivers: [otlp]
33+
processors:
34+
- memory_limiter
35+
- batch
36+
exporters: [debug]
37+
metrics:
38+
receivers: [otlp]
39+
processors: [memory_limiter, batch]
40+
exporters: [debug]
41+
logs:
42+
receivers: [otlp]
43+
processors: [memory_limiter, batch]
44+
exporters: [debug]
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
curl -X POST -i http://localhost:4318/v1/traces \
2+
-H "Content-Type: application/json" \
3+
-d @trace.json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh
2+
$HOME/collectors/otelcol-contrib --config=agent.yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
#export SPLUNK_DEBUG_CONFIG_SERVER_PORT=55555
3+
$HOME/collectors/otelcol-contrib --config=gateway.yaml
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"resourceMetrics": [
3+
{
4+
"resource": {
5+
"attributes": [
6+
{
7+
"key": "service.name",
8+
"value": {
9+
"stringValue": "example-service"
10+
}
11+
}
12+
]
13+
},
14+
"scopeMetrics": [
15+
{
16+
"scope": {},
17+
"metrics": [
18+
{
19+
"name": "thiswillbedropped",
20+
"description": "A gauge metric with invalid temporality",
21+
"unit": "1",
22+
"gauge": {
23+
"dataPoints": [
24+
{
25+
"attributes": [],
26+
"startTimeUnixNano": "1581452772000000000",
27+
"timeUnixNano": "1581452773000000000",
28+
"asInteger": 4
29+
}
30+
]
31+
},
32+
"aggregationTemporality": "AGGREGATION_TEMPORALITY_CUMULATIVE"
33+
}
34+
]
35+
}
36+
]
37+
}
38+
]
39+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
curl -X POST -i http://localhost:4318/v1/traces \
2+
-H "Content-Type: application/json" \
3+
-d @bad-trace.json

0 commit comments

Comments
 (0)