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

feat(detected_labels): Initial skeleton for the API #12390

Merged
merged 14 commits into from
Apr 1, 2024

Conversation

shantanualsi
Copy link
Contributor

@shantanualsi shantanualsi commented Mar 28, 2024

What this PR does / why we need it:

This PR sets up a skeleton for the detected labels endpoint required for logs.Info app.
Introduces a new endpoint loki/api/experimental/detected_fields under the experimental flag.

Which issue(s) this PR fixes:
Fixes #

@shantanualsi shantanualsi changed the title (feat) Detected labels api for Log.Info feat(detected_labels): Initial skeleton for the API Mar 28, 2024
pkg/querier/http.go Outdated Show resolved Hide resolved
@shantanualsi shantanualsi marked this pull request as ready for review March 28, 2024 17:03
@shantanualsi shantanualsi requested a review from a team as a code owner March 28, 2024 17:03
Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cyriltovena
Copy link
Contributor

Can you please remove experimental like @trevorgrafana ? Grafana datasource doesn't support it.

pkg/loki/modules.go Outdated Show resolved Hide resolved
Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sandeepsukhani sandeepsukhani merged commit 5190dda into main Apr 1, 2024
10 checks passed
@sandeepsukhani sandeepsukhani deleted the detected-labels-api branch April 1, 2024 13:00
trevorwhitney added a commit that referenced this pull request Apr 1, 2024
commit 018856c
Author: Callum Styan <callumstyan@gmail.com>
Date:   Mon Apr 1 06:40:16 2024 -0700

    fix: fix span logging based on changes to request types timestamps (#12393)

    Signed-off-by: Callum Styan <callumstyan@gmail.com>

commit 5190dda
Author: Shantanu Alshi <shantanu.alshi@grafana.com>
Date:   Mon Apr 1 18:30:21 2024 +0530

    feat(detected_labels): Initial skeleton for the API (#12390)

    Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com>

commit 0b7ff48
Author: Sandeep Sukhani <sandeep.d.sukhani@gmail.com>
Date:   Mon Apr 1 14:21:50 2024 +0530

    chore: delete request processing improvements (#12259)

commit a509871
Author: Ed Welch <edward.welch@grafana.com>
Date:   Sun Mar 31 22:14:21 2024 -0400

    chore: remove experimental flags for l2 cache and memcached "addresses" config (#12410)

commit 7480468
Author: Kaviraj Kanagaraj <kavirajkanagaraj@gmail.com>
Date:   Sun Mar 31 18:00:53 2024 +0200

    fix: (Bug) correct resultType when storing instant query results in cache (#12312)

    Signed-off-by: Kaviraj <kavirajkanagaraj@gmail.com>

commit 246623f
Author: Trevor Whitney <trevorjwhitney@gmail.com>
Date:   Fri Mar 29 17:05:36 2024 -0600

    fix(detected_fields): fix issues with frontend integration (#12406)

    This PRs fixes issues we found when integrating with the frontend
    * the `/experimental` api made it difficult to interact with using the existing datasource, so move to `v1/detected_fields`
    * the config flag was considered cumbersome as the only potential negative impact of the endpoint is when it is used, and nothing is currently using it
    * the use of an enum in the protobuf produced unexpected results in the json, so type was converted to string
rhnasc pushed a commit to inloco/loki that referenced this pull request Apr 12, 2024
Co-authored-by: Cyril Tovena <cyril.tovena@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants