-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pete Wall <[email protected]>
- Loading branch information
Showing
18 changed files
with
787 additions
and
7 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
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
33 changes: 33 additions & 0 deletions
33
charts/feature-auto-instrumentation/templates/beyla-config.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,33 @@ | ||
{{- define "feature.autoInstrumentation.config.beyla" }} | ||
{{- $clusterName := dict "attributes" (dict "kubernetes" (dict "cluster_name" .Values.cluster.name)) }} | ||
{{- $endpoint := dict }} | ||
{{- if .Values.receivers.grpc.enabled }} | ||
{{- $endpoint = dict "otel_traces_export" (dict "endpoint" (include "kubernetes_monitoring.receiver.grpc" . | trim))}} | ||
{{- else if .Values.receivers.http.enabled }} | ||
{{- $endpoint = dict "otel_traces_export" (dict "endpoint" (include "kubernetes_monitoring.receiver.http" . | trim))}} | ||
{{- end }} | ||
{{- $preset := dict }} | ||
{{- if and (eq .Values.beyla.preset "network") (not .Values.beyla.config.data.network) }} | ||
{{- $preset = dict "network" (dict "enable" true)}} | ||
{{- end }} | ||
{{- if and (eq .Values.beyla.preset "application") (not .Values.beyla.config.data.discovery) }} | ||
{{- $preset = dict "discovery" (dict "services" (list (dict "k8s_namespace" ".")))}} | ||
{{- end }} | ||
{{- merge .Values.beyla.config.data $clusterName $endpoint $preset | toYaml }} | ||
{{- end }} | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "beyla.fullname" .Subcharts.beyla }} | ||
namespace: {{ include "beyla.namespace" .Subcharts.beyla }} | ||
labels: | ||
{{- include "beyla.labels" .Subcharts.beyla | nindent 4 }} | ||
app.kubernetes.io/component: config | ||
{{- with .Values.beyla.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
data: | ||
beyla-config.yml: |- | ||
{{- include "feature.autoInstrumentation.config.beyla" . | nindent 4 }} |
14 changes: 14 additions & 0 deletions
14
charts/feature-auto-instrumentation/tests/beyla_config_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,14 @@ | ||
# yamllint disable rule:document-start rule:line-length rule:trailing-spaces | ||
suite: Test Beyla config values | ||
templates: | ||
- beyla-config.yaml | ||
tests: | ||
- it: creates a ConfigMap for Beyla | ||
set: | ||
deployAsConfigMap: true | ||
asserts: | ||
- isKind: | ||
of: ConfigMap | ||
- equal: | ||
path: data["beyla-config.yml"] | ||
value: "" | ||
Check failure on line 14 in charts/feature-auto-instrumentation/tests/beyla_config_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
Binary file modified
BIN
-24 Bytes
(99%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-annotation-autodiscovery-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-application-observability-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
+263 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-auto-instrumentation-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-cluster-events-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-336 Bytes
(99%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-cluster-metrics-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-integrations-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-3 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-pod-logs-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-2 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-profiling-1.0.0.tgz
Binary file not shown.
Binary file modified
BIN
-34 Bytes
(100%)
charts/k8s-monitoring/charts/k8s-monitoring-feature-prometheus-operator-objects-1.0.0.tgz
Binary file not shown.
24 changes: 24 additions & 0 deletions
24
...-monitoring/docs/examples/features/auto-instrumentation/beyla-metrics/README.md
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 @@ | ||
<!-- | ||
(NOTE: Do not edit README.md directly. It is a generated file!) | ||
( To make changes, please modify values.yaml or description.txt and run `make examples`) | ||
--> | ||
# Example: features/auto-instrumentation/beyla-metrics/values.yaml | ||
|
||
## Values | ||
|
||
```yaml | ||
--- | ||
cluster: | ||
name: annotation-autodiscovery-cluster | ||
|
||
destinations: | ||
- name: prometheus | ||
type: prometheus | ||
url: http://prometheus.prometheus.svc:9090/api/v1/write | ||
|
||
autoInstrumentation: | ||
enabled: true | ||
|
||
alloy-metrics: | ||
enabled: true | ||
``` |
127 changes: 127 additions & 0 deletions
127
...-monitoring/docs/examples/features/auto-instrumentation/beyla-metrics/alloy-metrics.alloy
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.