Skip to content

Labels "Arbitrary labels to add to each metric scraped from this database" #304

@qrkop

Description

@qrkop

n the example configuration for multiple databases, we have:

Arbitrary labels to add to each metric scraped from this database

labels:

label_name1: label_value1

label_name2: label_value2

Is this feature already supported? I’m asking because when I run it, I get the following error:
level=ERROR source=main.go:110 msg="unable to load metrics configuration" error="yaml: unmarshal errors:\n line 49: field labels not found in type collector.DatabaseConfig"

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