Skip to content

feat: loki-logger support for structured metadata #13451

@marek-obuchowicz

Description

@marek-obuchowicz

Description

As recommended in loki documentation, labels should be used for fields with limited cardinality - a good example would be http request method, which can have one of few values. Labels should not be used for indexing fields with high value cardinality, like IP address or request id. For this case, loki has a feature called "structured metadata" - it can and should be used to index searchable fields.

At the moment, loki-logger plugin allows defining loki labels, but does not provide an option to specify structured metadata. This makes the plugin hardly usable in real-world, high-traffic scenarios where we need to index fields with high cardinality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions