Skip to content

Lokiexporter document is misleading #14401

Closed
@jtama

Description

Describe the issue you're reporting

The documentation shows the following, which is invalid.

processors:
  attributes:
    actions:
    - action: insert
      key: loki.attribute.labels
      value: [http.status_code]

  resource:
    attributes:
    - action: insert
      key: loki.attribute.labels
      value: [http.status]
    - action: insert
      key: loki.resource.labels
      value: [host.name, pod.name]

The correct config is

processors:
  attributes:
    actions:
    - action: insert
      key: loki.attribute.labels
      value: http.status_code

  resource:
    attributes:
    - action: insert
      key: loki.attribute.labels
      value: [http.status]
    - action: insert
      key: loki.resource.labels
      value: host.name pod.name

I can do a pr if you like.

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions