Skip to content

grafana otlp broke? #492

@arilotter

Description

@arilotter

with no changes, we stopped being able to send metrics to grafana. 401 error.

grafana dashboard showed no API key found, so i generated a new one -

even when passed seemingly correctly, it doesn't work with the same error.

next steps: try printing the actual auth header from within the psyche binary, and copy-paste that into a sample curl a-la

curl -v -X POST $OLTP_LOGS_URL \
  -H "Content-Type: application/json" \
  -H "authorization: $OLTP_AUTH_HEADER" \
  -d '{
    "resourceLogs": [
      {
        "resource": {
          "attributes": [
            {
              "key": "service.name",
              "value": {
                "stringValue": "my-service"
              }
            }
          ]
        },
        "scopeLogs": [
          {
            "scope": {
              "name": "my-app"
            },
            "logRecords": [
              {
                "timeUnixNano": "1768493072000000000",
                "severityText": "INFO",
                "body": {
                  "stringValue": "This is a test log message"
                },
                "attributes": [
                  {
                    "key": "log.level",
                    "value": {
                      "stringValue": "info"
                    }
                  }
                ]
              }
            ]
          }
        ]
      }
    ]
  }'

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