Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Patterns Detection API #493

Open
lmangani opened this issue Apr 11, 2024 · 0 comments
Open

Feature: Patterns Detection API #493

lmangani opened this issue Apr 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request feature request help wanted Extra attention is needed

Comments

@lmangani
Copy link
Collaborator

lmangani commented Apr 11, 2024

The Patterns Detection API seems to be used in Grafana 11.x Apps and might become useful to have. qryn has an experimental pattern detection which might or might not be feasible for integration. To be discussed and considered for roadmap inclusion.

Endpoints

  • GET /loki/api/v1/patterns

Example

curl -s "http://localhost:3100/loki/api/v1/patterns" \
  --data-urlencode 'query={app="loki"}' | jq
{
  "status": "success",
  "data": [
    {
      "pattern": "<_> caller=grpc_logging.go:66 <_> level=error method=/cortex.Ingester/Push <_> msg=gRPC err=\"connection refused to object store\"",
      "samples": [
        [
          1711839260,
          1
        ],
        [
          1711839270,
          2
        ],
        [
          1711839280,
          1
        ]
      ]
    },
    {
      "pattern": "<_> caller=grpc_logging.go:66 <_> level=info method=/cortex.Ingester/Push <_> msg=gRPC",
      "samples": [
        [
          1711839260,
          105
        ],
        [
          1711839270,
          222
        ],
        [
          1711839280,
          196
        ]
      ]
    }
  ]
}
@lmangani lmangani added enhancement New feature or request help wanted Extra attention is needed feature request labels Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants