-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: alloy-receiver jaeger bugs (#1169)
* Added otlp validation for grafana cloud endpoint * Set Port Names * Removed Trailing Spaces * Fixed jaeger bug - Setting: receivers.jaeger.thriftHttp.enabled would not config the receiver as it didn't satisfy the condition - The jaeger ports were rendering 0, as the dictionary was passed to | int, not the port * Added jaeger tests * Regenerated Output * Updated Meta-Monitoring Example * Rebuilt
- Loading branch information
Showing
15 changed files
with
1,141 additions
and
48 deletions.
There are no files selected for viewing
12 changes: 6 additions & 6 deletions
12
...ts/k8s-monitoring/charts/feature-application-observability/templates/_receiver_jaeger.tpl
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
177 changes: 177 additions & 0 deletions
177
charts/k8s-monitoring/charts/feature-application-observability/tests/jaeger_test.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 @@ | ||
--- | ||
# yamllint disable rule:document-start rule:line-length rule:trailing-spaces rule:empty-lines | ||
suite: Test Loki integration | ||
templates: | ||
- configmap.yaml | ||
tests: | ||
- it: should allow you to enable just the jaeger grpc receiver | ||
set: | ||
deployAsConfigMap: true | ||
receivers: | ||
jaeger: | ||
grpc: | ||
enabled: true | ||
asserts: | ||
- isKind: | ||
of: ConfigMap | ||
- matchRegex: | ||
path: data["module.alloy"] | ||
# The pattern should look like this, but since the regex is escaped, it will be a bit different | ||
# otelcol.receiver.jaeger "receiver" { | ||
# protocols { | ||
# grpc { | ||
# endpoint = "0.0.0.0:14250" | ||
# } | ||
# } | ||
# | ||
# debug_metrics { | ||
# disable_high_cardinality_metrics = true | ||
# } | ||
# output { | ||
# traces = [otelcol.processor.resourcedetection.default.input] | ||
# } | ||
# } | ||
pattern: |- | ||
\s*otelcol\.receiver\.jaeger "receiver"\s*\{ | ||
\s* protocols\s*\{ | ||
\s* grpc\s*\{ | ||
\s* endpoint = "0\.0\.0\.0:14250" | ||
\s* \} | ||
\s* \} | ||
\s* | ||
\s* debug_metrics\s*\{ | ||
\s* disable_high_cardinality_metrics = true | ||
\s* \} | ||
\s* output\s*\{ | ||
\s* traces = \[otelcol\.processor\.resourcedetection\.default\.input\] | ||
\s* \} | ||
\s*} | ||
- it: should allow you to enable just the jaeger thrift binary receiver | ||
set: | ||
deployAsConfigMap: true | ||
receivers: | ||
jaeger: | ||
thriftBinary: | ||
enabled: true | ||
asserts: | ||
- isKind: | ||
of: ConfigMap | ||
- matchRegex: | ||
path: data["module.alloy"] | ||
# The pattern should look like this, but since the regex is escaped, it will be a bit different | ||
# otelcol.receiver.jaeger "receiver" { | ||
# protocols { | ||
# thrift_binary { | ||
# endpoint = "0.0.0.0:6832" | ||
# } | ||
# } | ||
# | ||
# debug_metrics { | ||
# disable_high_cardinality_metrics = true | ||
# } | ||
# output { | ||
# traces = [otelcol.processor.resourcedetection.default.input] | ||
# } | ||
# } | ||
pattern: |- | ||
\s*otelcol\.receiver\.jaeger "receiver"\s*\{ | ||
\s* protocols\s*\{ | ||
\s* thrift_binary\s*\{ | ||
\s* endpoint = "0\.0\.0\.0:6832" | ||
\s* \} | ||
\s* \} | ||
\s* | ||
\s* debug_metrics\s*\{ | ||
\s* disable_high_cardinality_metrics = true | ||
\s* \} | ||
\s* output\s*\{ | ||
\s* traces = \[otelcol\.processor\.resourcedetection\.default\.input\] | ||
\s* \} | ||
\s*} | ||
- it: should allow you to enable just the jaeger thrift compact receiver | ||
set: | ||
deployAsConfigMap: true | ||
receivers: | ||
jaeger: | ||
thriftCompact: | ||
enabled: true | ||
asserts: | ||
- isKind: | ||
of: ConfigMap | ||
- matchRegex: | ||
path: data["module.alloy"] | ||
# The pattern should look like this, but since the regex is escaped, it will be a bit different | ||
# otelcol.receiver.jaeger "receiver" { | ||
# protocols { | ||
# thrift_compact { | ||
# endpoint = "0.0.0.0:6831" | ||
# } | ||
# } | ||
# | ||
# debug_metrics { | ||
# disable_high_cardinality_metrics = true | ||
# } | ||
# output { | ||
# traces = [otelcol.processor.resourcedetection.default.input] | ||
# } | ||
# } | ||
pattern: |- | ||
\s*otelcol\.receiver\.jaeger "receiver"\s*\{ | ||
\s* protocols\s*\{ | ||
\s* thrift_compact\s*\{ | ||
\s* endpoint = "0\.0\.0\.0:6831" | ||
\s* \} | ||
\s* \} | ||
\s* | ||
\s* debug_metrics\s*\{ | ||
\s* disable_high_cardinality_metrics = true | ||
\s* \} | ||
\s* output\s*\{ | ||
\s* traces = \[otelcol\.processor\.resourcedetection\.default\.input\] | ||
\s* \} | ||
\s*} | ||
- it: should allow you to enable just the jaeger thrift http receiver | ||
set: | ||
deployAsConfigMap: true | ||
receivers: | ||
jaeger: | ||
thriftHttp: | ||
enabled: true | ||
asserts: | ||
- isKind: | ||
of: ConfigMap | ||
- matchRegex: | ||
path: data["module.alloy"] | ||
# The pattern should look like this, but since the regex is escaped, it will be a bit different | ||
# otelcol.receiver.jaeger "receiver" { | ||
# protocols { | ||
# thrift_http { | ||
# endpoint = "0.0.0.0:14268" | ||
# } | ||
# } | ||
# | ||
# debug_metrics { | ||
# disable_high_cardinality_metrics = true | ||
# } | ||
# output { | ||
# traces = [otelcol.processor.resourcedetection.default.input] | ||
# } | ||
# } | ||
pattern: |- | ||
\s*otelcol\.receiver\.jaeger "receiver"\s*\{ | ||
\s* protocols\s*\{ | ||
\s* thrift_http\s*\{ | ||
\s* endpoint = "0\.0\.0\.0:14268" | ||
\s* \} | ||
\s* \} | ||
\s* | ||
\s* debug_metrics\s*\{ | ||
\s* disable_high_cardinality_metrics = true | ||
\s* \} | ||
\s* output\s*\{ | ||
\s* traces = \[otelcol\.processor\.resourcedetection\.default\.input\] | ||
\s* \} | ||
\s*} |
16 changes: 15 additions & 1 deletion
16
charts/k8s-monitoring/docs/examples/auth/bearer-token/alloy-receiver.alloy
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 15 additions & 1 deletion
16
charts/k8s-monitoring/docs/examples/auth/bearer-token/output.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
charts/k8s-monitoring/docs/examples/auth/external-secrets/alloy-receiver.alloy
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 3 additions & 2 deletions
5
charts/k8s-monitoring/docs/examples/auth/external-secrets/output.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.