Skip to content

Commit d9eadd6

Browse files
author
CircleCI
committed
filter out metrics II
1 parent 99798e5 commit d9eadd6

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

telemetryproxy/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ FROM alpine:latest AS chmod-helper
2121
ADD ./docker/etc/config.yaml.tpl /lumigo/etc/otelcol-config.yaml.tpl
2222
ADD ./docker/etc/events-config.yaml.tpl /lumigo/etc/otelcol-events-config.yaml.tpl
2323
ADD ./docker/etc/common-config.yaml /lumigo/etc/otelcol-common-config.yaml
24-
ADD ./docker/etc/essential_metrics.yaml /lumigo/etc/essential_metrics.yaml
24+
ADD ./docker/etc/essential-metrics.yaml /lumigo/etc/essential-metrics.yaml
2525
RUN chown -R 1234:1234 /lumigo/etc/otelcol-config.yaml.tpl
2626
RUN chown -R 1234:1234 /lumigo/etc/otelcol-events-config.yaml.tpl
2727

telemetryproxy/docker/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readonly OTELCOL_CONFIG_TEMPLATE_FILE_PATH=${OTELCOL_CONFIG_TEMPLATE_FILE_PATH:-
77
readonly GENERATION_CONFIG_FILE_PATH="/lumigo/etc/otelcol/generation-config.json"
88
readonly NAMESPACES_FILE_PATH="/lumigo/etc/namespaces/namespaces_to_monitor.json"
99
readonly NAMESPACES_FILE_SHA_PATH="${NAMESPACES_FILE_PATH}.sha1"
10-
readonly ESSENTIAL_METRICS_NAMES_FILE_PATH="/lumigo/etc/essential_metrics.yaml"
10+
readonly ESSENTIAL_METRICS_NAMES_FILE_PATH="/lumigo/etc/essential-metrics.yaml"
1111

1212
readonly DEFAULT_MEMORY_LIMIT_MIB=4000
1313
readonly NO_MEMORY_LIMIT=9223372036854771712

telemetryproxy/docker/etc/config.yaml.tpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{{- $infraMetricsFrequency := getenv "LUMIGO_INFRA_METRICS_SCRAPING_FREQUENCY" "15s" }}
77
{{- $otelcolInternalMetricsFrequency := getenv "LUMIGO_OTELCOL_METRICS_SCRAPING_FREQUENCY" "15s" }}
88
{{- $essentialMetricsOnly := getenv "LUMIGO_EXPORT_ESSENTIAL_METRICS_ONLY" "" | conv.ToBool }}
9-
{{- $essentialMetricsNames := (datasource "essential_metrics").metrics -}}
9+
{{- $essentialMetricsNames := (datasource "essential-metrics").metrics -}}
1010
{{- $watchdogEnabled := getenv "LUMIGO_WATCHDOG_ENABLED" "" | conv.ToBool }}
1111
{{- $infraMetricsEnabled := getenv "LUMIGO_INFRA_METRICS_ENABLED" "" | conv.ToBool }}
1212
{{- $metricsScrapingEnabled := or $watchdogEnabled $infraMetricsEnabled}}
@@ -235,6 +235,7 @@ service:
235235
receivers:
236236
- prometheus/collector-self-metrics
237237
processors:
238+
- filter/filter-prom-metrics
238239
- batch
239240
- k8sdataenricherprocessor
240241
- transform/inject_operator_details_into_resource

0 commit comments

Comments
 (0)