-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add interval processor, spanlogs connector, and spanmetrics connector (…
…#1119) * Add interval processor Signed-off-by: Pete Wall <[email protected]> * Start adding spanmetrics and spanlogs Signed-off-by: Pete Wall <[email protected]> * Rebuild the AppO11y pipeline so it's defined in a pipeline.tpl file. Much easier to modify and understand. Signed-off-by: Pete Wall <[email protected]> * Add spanlogs and spanmetrics connectors Signed-off-by: Pete Wall <[email protected]> * Add namespace field to spanmetrics Signed-off-by: Pete Wall <[email protected]> * Update charts/k8s-monitoring/charts/feature-application-observability/values.yaml Co-authored-by: Patrick Easters <[email protected]> * Update appo11y readme Signed-off-by: Pete Wall <[email protected]> * Update the description for the grafanaCloudMetrics connector to highlight its potential cause for billing. Signed-off-by: Pete Wall <[email protected]> --------- Signed-off-by: Pete Wall <[email protected]> Co-authored-by: Patrick Easters <[email protected]>
- Loading branch information
1 parent
be23092
commit 538fe77
Showing
39 changed files
with
1,468 additions
and
274 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
13 changes: 13 additions & 0 deletions
13
.../k8s-monitoring/charts/feature-application-observability/schema-mods/types-and-enums.json
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,13 @@ | ||
{ | ||
"properties": { | ||
"connectors": { | ||
"properties": { | ||
"spanMetrics": { | ||
"properties": { | ||
"histogram": {"properties": {"type": {"enum": ["explicit", "exponential"]}}} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
31 changes: 31 additions & 0 deletions
31
...8s-monitoring/charts/feature-application-observability/templates/_connector_span_logs.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{{/* Inputs: Values (values) metricsOutput, name */}} | ||
{{/* https://grafana.com/docs/alloy/latest/reference/components/otelcol/otelcol.connector.spanlogs/ */}} | ||
{{- define "feature.applicationObservability.connector.spanlogs.alloy.target" }}otelcol.connector.spanlogs.{{ .name | default "default" }}.input{{- end }} | ||
{{- define "feature.applicationObservability.connector.spanlogs.alloy" }} | ||
otelcol.connector.spanlogs "{{ .name | default "default" }}" { | ||
{{- if .Values.connectors.spanLogs.spans }} | ||
spans = true | ||
{{- end }} | ||
{{- if .Values.connectors.spanLogs.spansAttributes }} | ||
spans_attributes = {{ .Values.connectors.spanLogs.spansAttributes | toJson }} | ||
{{- end }} | ||
{{- if .Values.connectors.spanLogs.roots }} | ||
roots = true | ||
{{- end }} | ||
{{- if .Values.connectors.spanLogs.process }} | ||
process = true | ||
{{- end }} | ||
{{- if .Values.connectors.spanLogs.processAttributes }} | ||
process_attributes = {{ .Values.connectors.spanLogs.processAttributes | toJson }} | ||
{{- end }} | ||
{{- if .Values.connectors.spanLogs.labels }} | ||
labels = {{ .Values.connectors.spanLogs.labels | toJson }} | ||
{{- end }} | ||
|
||
output { | ||
{{- if and .logs .Values.logs.enabled }} | ||
logs = {{ .logs }} | ||
{{- end }} | ||
} | ||
} | ||
{{- end }} |
51 changes: 51 additions & 0 deletions
51
...monitoring/charts/feature-application-observability/templates/_connector_span_metrics.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{/* Inputs: Values (values) metricsOutput, name */}} | ||
{{/* https://grafana.com/docs/alloy/latest/reference/components/otelcol/otelcol.connector.spanmetrics/ */}} | ||
{{- define "feature.applicationObservability.connector.spanmetrics.alloy.target" }}otelcol.connector.spanmetrics.{{ .name | default "default" }}.input{{- end }} | ||
{{- define "feature.applicationObservability.connector.spanmetrics.alloy" }} | ||
otelcol.connector.spanmetrics "{{ .name | default "default" }}" { | ||
{{- range $dimension := .Values.connectors.spanMetrics.dimensions }} | ||
dimension { | ||
name = {{ $dimension.name | quote }} | ||
{{- if $dimension.default }} | ||
default = {{ $dimension.default | quote }} | ||
{{- end }} | ||
} | ||
{{- end }} | ||
dimensions_cache_size = {{ .Values.connectors.spanMetrics.dimensionsCacheSize }} | ||
namespace = {{ .Values.connectors.spanMetrics.namespace | quote }} | ||
{{- if .Values.connectors.spanMetrics.events.enabled }} | ||
events { | ||
enabled = true | ||
} | ||
{{- end }} | ||
{{ if .Values.connectors.spanMetrics.exemplars.enabled }} | ||
exemplars { | ||
enabled = true | ||
{{- if .Values.connectors.spanMetrics.exemplars.maxPerDataPoint }} | ||
max_per_data_point = {{ .Values.connectors.spanMetrics.exemplars.maxPerDataPoint }} | ||
{{- end }} | ||
} | ||
{{- end }} | ||
{{- if .Values.connectors.spanMetrics.histogram.enabled }} | ||
histogram { | ||
disable = false | ||
unit = {{ .Values.connectors.spanMetrics.histogram.unit | quote }} | ||
{{- if eq .Values.connectors.spanMetrics.histogram.type "explicit" }} | ||
explicit { | ||
buckets = {{ .Values.connectors.spanMetrics.histogram.explicit.buckets | toJson }} | ||
} | ||
{{- else if eq .Values.connectors.spanMetrics.histogram.type "exponential" }} | ||
exponential { | ||
max_size = {{ .Values.connectors.spanMetrics.histogram.exponential.maxSize }} | ||
} | ||
{{- end }} | ||
} | ||
{{- end }} | ||
|
||
output { | ||
{{- if and .metrics .Values.metrics.enabled }} | ||
metrics = {{ .metrics }} | ||
{{- end }} | ||
} | ||
} | ||
{{- end }} |
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
Oops, something went wrong.