-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebuild the pipeline of metrics, logs, and traces that enter via the …
…OTLP and OTLP HTTP receivers. This should match what is required by Application Observability. Also add the ability to define otel filters for data from the receivers Signed-off-by: Pete Wall <pete.wall@grafana.com>
- Loading branch information
Showing
100 changed files
with
5,251 additions
and
2,727 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
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
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
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
43 changes: 43 additions & 0 deletions
43
charts/k8s-monitoring/templates/agent_config/_pod_logs_processor.river.txt
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,43 @@ | ||
{{ define "agent.config.logs.pod_logs_processor" }} | ||
loki.process "pod_logs" { | ||
stage.match { | ||
selector = "{tmp_container_runtime=\"containerd\"}" | ||
// the cri processing stage extracts the following k/v pairs: log, stream, time, flags | ||
stage.cri {} | ||
|
||
// Set the extract flags and stream values as labels | ||
stage.labels { | ||
values = { | ||
flags = "", | ||
stream = "", | ||
} | ||
} | ||
} | ||
|
||
// if the label tmp_container_runtime from above is docker parse using docker | ||
stage.match { | ||
selector = "{tmp_container_runtime=\"docker\"}" | ||
// the docker processing stage extracts the following k/v pairs: log, stream, time | ||
stage.docker {} | ||
|
||
// Set the extract stream value as a label | ||
stage.labels { | ||
values = { | ||
stream = "", | ||
} | ||
} | ||
} | ||
|
||
// Drop the filename label, since it's not really useful in the context of Kubernetes, where we already have | ||
// cluster, namespace, pod, and container labels. | ||
// Also drop the temporary container runtime label as it is no longer needed. | ||
stage.label_drop { | ||
values = ["filename", "tmp_container_runtime"] | ||
} | ||
|
||
{{- if .Values.logs.pod_logs.extraStageBlocks }} | ||
{{ .Values.logs.pod_logs.extraStageBlocks | indent 2 }} | ||
{{ end }} | ||
forward_to = [loki.write.grafana_cloud_loki.receiver] | ||
} | ||
{{ end }} |
Oops, something went wrong.