Skip to content

attach_metadata namespace doesn't exist on CRDs #1654

@dudrv

Description

@dudrv

Documentation at https://docs.victoriametrics.com/victoriametrics/sd_configs/#kubernetes-role-pod states

_meta_kubernetes_namespace_label: Each label from the namespace object. Available when attach_metadata: {namespace: true} is set

But there seems to be no way how to add attach_metadata: {namespace: true} part to any CRD.

❯ k explain vmpodscrape.spec.attach_metadata
GROUP:      operator.victoriametrics.com
KIND:       VMPodScrape
VERSION:    v1beta1
FIELD: attach_metadata <Object>
DESCRIPTION:
    AttachMetadata configures metadata attaching from service discovery
FIELDS:
  node	<boolean>
    Node instructs vmagent to add node specific metadata from service discovery
    Valid for roles: pod, endpoints, endpointslice.

Metadata

Metadata

Labels

waiting for releaseThe change was merged to upstream, but wasn't released yet.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions