mirror of
https://github.com/cozystack/cozystack.git
synced 2026-12-02 21:30:46 +09:00
feat(monitoring, kubernetes): add destinations to the monitoring agents without replacing the defaults (#5376)
<!-- Thank you for making a contribution! Here are some tips for you: - Use Conventional Commits for the PR title: `type(scope): description` - Types: feat, fix, security (a fix that comes through a security advisory), docs, style, refactor, perf, test, build, ci, chore - Scopes are not an exhaustive list — pick the most specific scope for the change and extend the list when a genuinely new area appears. Examples: - System components: dashboard, platform, operator, cilium, kube-ovn, linstor, fluxcd, cluster-api - Managed apps: postgres, mariadb, redis, kafka, clickhouse, virtual-machine, kubernetes - Development and maintenance: api, hack, tests, ci, docs, maintenance - Breaking changes: append `!` after type/scope (`feat(api)!: ...`) or add a `BREAKING CHANGE:` footer - If it's a work in progress, consider creating this PR as a draft. - Don't hesistate to ask for opinion and review in the community chats, even if it's still a draft. - Fixes merged to `main` reach the release lines the backport batch runs for automatically, so do not open backport PRs by hand: https://github.com/cozystack/cozystack/blob/main/docs/release/backports.md --> ## What this PR does To send a copy of metrics or logs to a store of their own, a user today has to override `vmagent.remoteWrite.urls` or `fluent-bit.config.outputs`. Both are replaced wholesale on merge, so the override must restate the platform's own destinations; one that does not silently cuts the tenant's VictoriaMetrics and VictoriaLogs off, with the application still `Ready`. A plain URL list cannot carry credentials either. This adds two keys to the monitoring-agents chart, appended after the defaults instead of replacing them: - `vmagent.extraRemoteWrite`: VMAgent `remoteWrite` entries passed as is, so an entry can carry `basicAuth`, `bearerTokenSecret`, `headers` or `tlsConfig`. - `fluent-bit.config.extraOutputs`: `[OUTPUT]` sections appended by the outputs template. On a managed Kubernetes cluster both are set through `addons.monitoringAgents.valuesOverride`, for example: ```yaml addons: monitoringAgents: enabled: true valuesOverride: vmagent: extraRemoteWrite: - url: https://metrics.example.org/api/v1/write basicAuth: username: {name: remote-write-auth, key: username} password: {name: remote-write-auth, key: password} fluent-bit: config: extraOutputs: | [OUTPUT] Name http Match kube.* Host logs.example.org port 443 tls On ``` `extraOutputs` is appended by a hook at the end of the default `outputs`, because the vendored fluent-bit chart builds `fluent-bit.conf` from `outputs` alone. Overriding `outputs` therefore means keeping that hook (`{{- with .Values.config.extraOutputs }}` / `{{ . }}` / `{{- end }}`) or moving the extra destinations into `outputs` itself. Setting `extraOutputs` together with an `outputs` override that lacks the hook fails the render, in the system chart and in the tenant HelmRelease template, instead of dropping the destinations in silence. Depends on #5375, which makes the app apply `valuesOverride` at all; its commit is the first one here and drops out once it merges. The commits after it belong to this PR. With neither key set, both the system chart render and the tenant render (the app's HelmRelease values fed into the system chart) are byte-identical to before. The example above was rendered end to end: the tenant's VMAgent gets its own vminsert plus the extra entry with its credentials, and `fluent-bit.conf` gets the tenant's vlinsert output followed by the extra one. Open point for reviewers: the tenant outputs carry the hook as escaped template text, because the app chart renders that string before the fluent-bit subchart renders it again. The alternative was appending at app render time from `valuesOverride`, which would leave root and tenant installs with two different mechanisms for the same key. ### Screenshots <!-- REQUIRED for UI changes: attach screenshots or screen recordings demonstrating the visual impact of your changes. PRs with UI changes without screenshots will not be merged. --> ### Downstream repositories <!-- Cozystack is upstream for repositories that are NOT kept in sync with it automatically, and nothing in CI compares the two sides, so a change here can break them silently. Which change forces what, and which file to touch, is the trigger map in docs/agents/contributing.md under "Downstream Repositories". Walk it before you tick anything. IF YOU ARE AN AI AGENT OR AN LLM, THIS IS PART OF THE TASK, NOT A FORM TO FILL IN: 1. Walk the trigger map against the actual diff of this PR, file by file. Do not decide from the PR title or from your memory of what you changed. 2. For every repository you tick, open the follow-up PR there and link it on the same line. A ticked box with no link claims work that does not exist, which is worse than an empty box. Search that repository for an open PR or issue covering it first, and link that instead of filing a duplicate. 3. When the follow-up is out of scope, or needs a decision that is not yours to make, open an issue in that repository instead, link that, and say so in the PR body. Do not push a speculative PR into another repository just to fill a line here. 4. Do not tick "No downstream repository is affected" to make the checklist go away. If you are unsure, leave every box empty and say so in the PR body, so a human decides. --> - [x] No downstream repository is affected by this change - [ ] [cozystack/website](https://github.com/cozystack/website) - follow-up: - [ ] [cozystack/terraform-provider-cozystack](https://github.com/cozystack/terraform-provider-cozystack) - follow-up: - [ ] [cozystack/ansible-cozystack](https://github.com/cozystack/ansible-cozystack) - follow-up: - [ ] [cozystack/ccp](https://github.com/cozystack/ccp) - follow-up: - [ ] [cozystack/talm](https://github.com/cozystack/talm) - follow-up: - [ ] [cozystack/cozyhr](https://github.com/cozystack/cozyhr) - follow-up: - [ ] [cozystack/cozy-proxy](https://github.com/cozystack/cozy-proxy) - follow-up: - [ ] [cozystack/cozystack-telemetry-server](https://github.com/cozystack/cozystack-telemetry-server) - follow-up: - [ ] [cozystack/external-apps-example](https://github.com/cozystack/external-apps-example) - follow-up: - [ ] [cozystack/examples](https://github.com/cozystack/examples) - follow-up: - [ ] [cozystack/community](https://github.com/cozystack/community) - follow-up: ### Release note <!-- Write a release note: - Explain what has changed internally and for users. - Start with the same `type(scope):` prefix as in the PR title - Follow the guidelines at https://github.com/kubernetes/community/blob/master/contributors/guide/release-notes.md. --> ```release-note feat(monitoring): the monitoring agents accept `vmagent.extraRemoteWrite` and `fluent-bit.config.extraOutputs` to send metrics and logs to additional destinations without replacing the default ones; on managed Kubernetes clusters they are set through `addons.monitoringAgents.valuesOverride`. ``` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **New Features** * Monitoring agents can send metrics to additional remote-write destinations, including destinations that use Basic Auth. * Fluent Bit can include custom output sections alongside its default outputs. * Monitoring-agent value overrides can customize selected settings while retaining other default configuration. * **Bug Fixes** * Rendering now reports an error when custom Fluent Bit outputs omit the required hook while extra outputs are configured. Retaining the hook allows default and custom destinations to be rendered. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
8 files changed
+338
-1
No files matched your search
@@ -38,6 +38,9 @@ fluent-bit:
|
||||
json_date_format iso8601
|
||||
header AccountID 0
|
||||
header ProjectID 0
|
||||
{{ `{{- with .Values.config.extraOutputs }}` }}
|
||||
{{ `{{ . }}` }}
|
||||
{{ `{{- end }}` }}
|
||||
filters: |
|
||||
[FILTER]
|
||||
Name kubernetes
|
||||
@@ -65,6 +68,21 @@ fluent-bit:
|
||||
{{ end }}
|
||||
|
||||
{{- if and .Values.addons.monitoringAgents.enabled .Values._namespace.etcd }}
|
||||
{{- $values := deepCopy .Values.addons.monitoringAgents.valuesOverride | mergeOverwrite (fromYaml (include "cozystack.defaultMonitoringAgentsValues" .)) }}
|
||||
{{- /*
|
||||
The monitoring-agents chart refuses the same combination by rendering
|
||||
outputs, but only once the HelmRelease reconciles inside the tenant
|
||||
cluster. That render needs the subchart's context, which this chart does
|
||||
not have, so the check here is textual: a with on extraOutputs whose
|
||||
closing braces keep the newline, followed by {{ . }} on a line of its own.
|
||||
A hook that is only mentioned, commented out or compacted fails here and
|
||||
is reported on the application itself; anything subtler still fails in
|
||||
the tenant cluster.
|
||||
*/}}
|
||||
{{- $fluentBitConfig := (index $values "fluent-bit").config | default dict }}
|
||||
{{- if and $fluentBitConfig.extraOutputs (not (regexMatch "\\{\\{-?\\s*with\\s+\\.Values\\.config\\.extraOutputs\\s*\\}\\}[ \\t]*\\n[ \\t]*\\{\\{\\s*\\.\\s*-?\\}\\}" ($fluentBitConfig.outputs | default ""))) }}
|
||||
{{- fail "addons.monitoringAgents.valuesOverride sets fluent-bit.config.extraOutputs but overrides fluent-bit.config.outputs without a hook that emits it on a line of its own, so the extra destinations would be dropped. Keep the hook from the default outputs at the end of yours, each part on a line of its own: {{- with .Values.config.extraOutputs }}, then {{ . }}, then {{- end }}. Or move the destinations into outputs and unset extraOutputs." }}
|
||||
{{- end }}
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
@@ -104,5 +122,5 @@ spec:
|
||||
- name: {{ .Release.Name }}-metrics-server
|
||||
namespace: {{ .Release.Namespace }}
|
||||
values:
|
||||
{{- toYaml (deepCopy .Values.addons.monitoringAgents.valuesOverride | mergeOverwrite (fromYaml (include "cozystack.defaultMonitoringAgentsValues" .))) | nindent 4 }}
|
||||
{{- toYaml $values | nindent 4 }}
|
||||
{{- end }}
|
||||
@@ -78,3 +78,110 @@ tests:
|
||||
- equal:
|
||||
path: spec.values.fluent-bit.daemonSetVolumes[0].name
|
||||
value: varlog
|
||||
|
||||
- it: adds extra destinations through valuesOverride without dropping the tenant ones
|
||||
set:
|
||||
addons.monitoringAgents.valuesOverride:
|
||||
vmagent:
|
||||
extraRemoteWrite:
|
||||
- url: https://metrics.example.org/api/v1/write
|
||||
fluent-bit:
|
||||
config:
|
||||
extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name stdout
|
||||
Match *
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.values.vmagent.remoteWrite.urls
|
||||
value:
|
||||
- http://vminsert-shortterm.tenant-root.svc.cozy.local:8480/insert/0/prometheus
|
||||
- equal:
|
||||
path: spec.values.vmagent.extraRemoteWrite
|
||||
value:
|
||||
- url: https://metrics.example.org/api/v1/write
|
||||
- matchRegex:
|
||||
path: spec.values.fluent-bit.config.outputs
|
||||
pattern: 'Host vlinsert-generic\.tenant-root\.svc\.cozy\.local'
|
||||
# The outputs string is rendered again by the fluent-bit subchart,
|
||||
# which is where extraOutputs gets appended.
|
||||
- matchRegex:
|
||||
path: spec.values.fluent-bit.config.outputs
|
||||
pattern: '\{\{- with \.Values\.config\.extraOutputs \}\}\n\{\{ \. \}\}\n\{\{- end \}\}'
|
||||
|
||||
- it: refuses extraOutputs when valuesOverride replaces outputs without the hook
|
||||
set:
|
||||
addons.monitoringAgents.valuesOverride:
|
||||
fluent-bit:
|
||||
config:
|
||||
outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'overrides fluent-bit\.config\.outputs without a hook that emits it on a line of its own'
|
||||
|
||||
- it: refuses extraOutputs when the hook in an outputs override is commented out
|
||||
set:
|
||||
addons.monitoringAgents.valuesOverride:
|
||||
fluent-bit:
|
||||
config:
|
||||
outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{/* .Values.config.extraOutputs */}}
|
||||
extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'without a hook that emits it on a line of its own'
|
||||
|
||||
- it: refuses extraOutputs when the hook in an outputs override trims the newline
|
||||
set:
|
||||
addons.monitoringAgents.valuesOverride:
|
||||
fluent-bit:
|
||||
config:
|
||||
outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{- with .Values.config.extraOutputs }}{{ . }}{{- end }}
|
||||
extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'without a hook that emits it on a line of its own'
|
||||
|
||||
- it: passes both destinations through when valuesOverride replaces outputs and keeps the hook
|
||||
set:
|
||||
addons.monitoringAgents.valuesOverride:
|
||||
fluent-bit:
|
||||
config:
|
||||
outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{- with .Values.config.extraOutputs }}
|
||||
{{ . }}
|
||||
{{- end }}
|
||||
extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: spec.values.fluent-bit.config.outputs
|
||||
pattern: 'Host logs-a\.example\.org\n\{\{- with \.Values\.config\.extraOutputs \}\}'
|
||||
- matchRegex:
|
||||
path: spec.values.fluent-bit.config.extraOutputs
|
||||
pattern: 'Host logs-b\.example\.org'
|
||||
@@ -0,0 +1,21 @@
|
||||
{{- /*
|
||||
extraOutputs is appended by a hook inside the outputs string, because the
|
||||
vendored fluent-bit chart builds fluent-bit.conf from outputs alone and
|
||||
make update re-pulls it unpatched. An outputs override without a working
|
||||
hook would accept extraOutputs and drop it in silence, so refuse the render.
|
||||
|
||||
outputs is rendered here the way the subchart renders it, and the check is
|
||||
that extraOutputs comes out of it starting on a line of its own: a hook
|
||||
commented out, or one that trims the newline before it, fails too. The
|
||||
render only runs when extraOutputs is set, so the lookup in the default
|
||||
outputs is not doubled otherwise. packages/apps/kubernetes carries an
|
||||
earlier, textual check for tenant clusters.
|
||||
*/}}
|
||||
{{- $fluentBit := index .Values "fluent-bit" }}
|
||||
{{- $config := $fluentBit.config | default dict }}
|
||||
{{- if $config.extraOutputs }}
|
||||
{{- $rendered := tpl ($config.outputs | default "") (dict "Values" $fluentBit "Release" .Release "Chart" .Chart "Capabilities" .Capabilities "Template" .Template "Files" .Files) }}
|
||||
{{- if not (contains (printf "\n%s" (trim $config.extraOutputs)) (printf "\n%s" $rendered)) }}
|
||||
{{- fail "fluent-bit.config.extraOutputs is set but fluent-bit.config.outputs does not emit it on a line of its own, so the extra destinations would be dropped. Keep the hook from the default outputs at the end of yours, each part on a line of its own: {{- with .Values.config.extraOutputs }}, then {{ . }}, then {{- end }}. Or move the destinations into outputs and unset extraOutputs." }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
@@ -17,6 +17,9 @@ spec:
|
||||
{{- range .Values.vmagent.remoteWrite.urls }}
|
||||
- url: {{ tpl . $ | quote }}
|
||||
{{- end }}
|
||||
{{- with .Values.vmagent.extraRemoteWrite }}
|
||||
{{- toYaml . | nindent 2 }}
|
||||
{{- end }}
|
||||
|
||||
scrapeInterval: 30s
|
||||
selectAllByDefault: true
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
suite: fluent-bit extraOutputs is refused where outputs would drop it
|
||||
|
||||
# extraOutputs only reaches fluent-bit.conf through the hook in outputs. An
|
||||
# outputs override without a working hook would accept extraOutputs and drop
|
||||
# it, so the render fails instead. The guard renders outputs, so a hook that
|
||||
# is only mentioned, or that glues the extra section to the previous line,
|
||||
# counts as missing. The tenant HelmRelease carries the same check;
|
||||
# its counterpart is packages/apps/kubernetes/tests/monitoring_agents_test.yaml.
|
||||
templates:
|
||||
- templates/fluent-bit-extra-outputs-guard.yaml
|
||||
release:
|
||||
name: monitoring-agents
|
||||
namespace: cozy-monitoring
|
||||
set:
|
||||
global:
|
||||
target: tenant-root
|
||||
tests:
|
||||
- it: refuses extraOutputs when outputs is overridden without the hook
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'fluent-bit\.config\.outputs does not emit it on a line of its own'
|
||||
|
||||
- it: refuses a hook that is commented out
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{/* .Values.config.extraOutputs */}}
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'does not emit it on a line of its own'
|
||||
|
||||
- it: refuses a compact hook that trims the newline before the extra section
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{- with .Values.config.extraOutputs }}{{ . }}{{- end }}
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- failedTemplate:
|
||||
errorPattern: 'does not emit it on a line of its own'
|
||||
|
||||
- it: accepts an outputs override that keeps the three-line hook
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{- with .Values.config.extraOutputs }}
|
||||
{{ . }}
|
||||
{{- end }}
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: accepts extraOutputs with the default outputs
|
||||
set:
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name stdout
|
||||
Match *
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
|
||||
- it: accepts an outputs override without extraOutputs
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
asserts:
|
||||
- hasDocuments:
|
||||
count: 0
|
||||
@@ -0,0 +1,56 @@
|
||||
suite: fluent-bit extraOutputs add destinations next to the default ones
|
||||
|
||||
# outputs is one string, so a user who overrides it to add a destination has
|
||||
# to restate the defaults or lose them. extraOutputs is appended by the
|
||||
# outputs template itself. packages/apps/kubernetes replaces outputs for
|
||||
# tenant clusters and carries the same hook; its counterpart is
|
||||
# packages/apps/kubernetes/tests/monitoring_agents_test.yaml.
|
||||
templates:
|
||||
- charts/fluent-bit/templates/configmap.yaml
|
||||
release:
|
||||
name: monitoring-agents
|
||||
namespace: cozy-monitoring
|
||||
set:
|
||||
global:
|
||||
target: tenant-root
|
||||
tests:
|
||||
- it: appends extraOutputs after the default outputs, which stay
|
||||
set:
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name stdout
|
||||
Match *
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data["fluent-bit.conf"]
|
||||
pattern: '(?s)Match audit\.\*\n Host vlinsert-generic\.tenant-root\.svc.*\[OUTPUT\]\n Name stdout\n Match \*'
|
||||
|
||||
- it: renders no extra output by default
|
||||
asserts:
|
||||
- notMatchRegex:
|
||||
path: data["fluent-bit.conf"]
|
||||
pattern: 'Name stdout'
|
||||
|
||||
- it: renders each destination once when outputs is overridden and keeps the hook
|
||||
set:
|
||||
fluent-bit.config.outputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-a.example.org
|
||||
{{- with .Values.config.extraOutputs }}
|
||||
{{ . }}
|
||||
{{- end }}
|
||||
fluent-bit.config.extraOutputs: |
|
||||
[OUTPUT]
|
||||
Name http
|
||||
Host logs-b.example.org
|
||||
asserts:
|
||||
- matchRegex:
|
||||
path: data["fluent-bit.conf"]
|
||||
pattern: '(?s)Host logs-a\.example\.org.*\[OUTPUT\]\n Name http\n Host logs-b\.example\.org'
|
||||
- notMatchRegex:
|
||||
path: data["fluent-bit.conf"]
|
||||
pattern: '(?s)logs-a\.example\.org.*logs-a\.example\.org'
|
||||
- notMatchRegex:
|
||||
path: data["fluent-bit.conf"]
|
||||
pattern: '(?s)logs-b\.example\.org.*logs-b\.example\.org'
|
||||
@@ -63,3 +63,23 @@ tests:
|
||||
- equal:
|
||||
path: spec.externalLabels.tenant
|
||||
value: "true"
|
||||
|
||||
- it: appends extraRemoteWrite entries after the urls, as written
|
||||
set:
|
||||
global.target: tenant-root
|
||||
vmagent:
|
||||
extraRemoteWrite:
|
||||
- url: https://metrics.example.org/api/v1/write
|
||||
basicAuth:
|
||||
username: {name: remote-write-auth, key: username}
|
||||
password: {name: remote-write-auth, key: password}
|
||||
asserts:
|
||||
- equal:
|
||||
path: spec.remoteWrite
|
||||
value:
|
||||
- url: http://vminsert-shortterm.tenant-root.svc:8480/insert/0/prometheus
|
||||
- url: http://vminsert-longterm.tenant-root.svc:8480/insert/0/prometheus
|
||||
- url: https://metrics.example.org/api/v1/write
|
||||
basicAuth:
|
||||
username: {name: remote-write-auth, key: username}
|
||||
password: {name: remote-write-auth, key: password}
|
||||
@@ -312,6 +312,12 @@ vmagent:
|
||||
urls:
|
||||
- http://vminsert-shortterm.{{ .Values.global.target }}.svc:8480/insert/0/prometheus
|
||||
- http://vminsert-longterm.{{ .Values.global.target }}.svc:8480/insert/0/prometheus
|
||||
# VMAgent remoteWrite entries appended after the urls above, passed as is,
|
||||
# so an entry can carry basicAuth, bearerTokenSecret, headers or tlsConfig.
|
||||
# Adding a destination here leaves the default ones in place; overriding
|
||||
# urls instead replaces them. Secrets an entry references must exist in
|
||||
# this release's namespace.
|
||||
extraRemoteWrite: []
|
||||
extraArgs: {}
|
||||
# Replaces the global promscrape.maxScrapeSize (32MB) for the kube-apiserver
|
||||
# job only. Its /metrics grows with the number of CRDs and outgrows 32MB on a
|
||||
@@ -451,6 +457,15 @@ fluent-bit:
|
||||
header AccountID 0
|
||||
header ProjectID 0
|
||||
{{- end }}
|
||||
{{- with .Values.config.extraOutputs }}
|
||||
{{ . }}
|
||||
{{- end }}
|
||||
# [OUTPUT] sections appended after the outputs above, so a destination can
|
||||
# be added without restating, and so without dropping, the default ones.
|
||||
# Not passed through tpl. They are appended by the hook at the end of
|
||||
# outputs, so an outputs override must keep that hook; the render fails
|
||||
# when extraOutputs is set and outputs lacks it.
|
||||
extraOutputs: ""
|
||||
filters: |
|
||||
[FILTER]
|
||||
Name kubernetes
|
||||
|
||||
Reference in new issue
Block a user