这是indexloc提供的服务,不要输入任何密码
Skip to content

Prometheus Config Generation Can Build Invalid Config Due To Inability To Skip Specific GCE Metadata Tags #1517

@ryanohnemus

Description

@ryanohnemus

In some cases the gce metadata may have info that is completely unnecessary/unhelpful as a metric label and should not be included. Specifically when you have metadata_startup_script set to a long script that is included as a huge label in the generated scrape config. This can cause you to run into an almost identical issue as #1221 where parts of that startup script are attempted to be interpreted leading to the otel agent unable to start the metrics portion of the service.

Can metadata_startup_script (startup_script) always be excluded from https://github.com/GoogleCloudPlatform/ops-agent/blob/master/confgenerator/prometheus.go#L170-L173 or can there be a config option available to disable it from being included and potentially causing the otel agent to exit due to a bad config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions