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(loki) : upgrade loki endpoint url #309

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

JGodin-C2C
Copy link
Contributor

@JGodin-C2C JGodin-C2C commented Mar 4, 2022

What type of PR is this?

/kind deprecation

Any specific area of the project related to this PR?

/area outputs

Why :

According to the documentation :

https://grafana.com/docs/loki/latest/api/#post-apiprompush

/api/prom/push is deprecated and is replaced by /loki/api/v1/push

Any specific area of the project related to this PR? :

standard api upgrade

This change can break older unspecified loki versions

Signed-off-by: Julien Godin julien.godin@camptocamp.com

@poiana
Copy link

poiana commented Mar 4, 2022

@JGodin-C2C: The label(s) kind/upgrade cannot be applied, because the repository doesn't have them.

In response to this:

What type of PR is this?

/kind upgrade

Any specific area of the project related to this PR?

/area outputs

Why :

According to the documentation :

https://grafana.com/docs/loki/latest/api/#post-apiprompush

/api/prom/push is deprecated and is replaced by /loki/api/v1/push

Any specific area of the project related to this PR? :

standard api upgrade

This change can break older unspecified loki versions

Signed-off-by: Julien Godin julien.godin@camptocamp.com

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@JGodin-C2C
Copy link
Contributor Author

/kind deprecation

@poiana
Copy link

poiana commented Mar 4, 2022

@JGodin-C2C: The label(s) kind/deprecation cannot be applied, because the repository doesn't have them.

In response to this:

/kind deprecation

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@JGodin-C2C
Copy link
Contributor Author

I don't get it, deprecation do seems to be a label, but does not seems to be working ?
What did i do wrong here ?

https://github.com/kubernetes/kubernetes/labels/kind%2Fdeprecation

@Issif
Copy link
Member

Issif commented Mar 4, 2022

Here's the list of available labels for this repo https://github.com/falcosecurity/falcosidekick/labels?q=kind the link you gave is for kubernetes

@Issif Issif added this to In progress in 2.x via automation Mar 4, 2022
@Issif Issif added this to the 2.25.0 milestone Mar 4, 2022
Issif
Issif previously approved these changes Mar 4, 2022
@poiana poiana added the lgtm label Mar 4, 2022
@poiana
Copy link

poiana commented Mar 4, 2022

LGTM label has been added.

Git tree hash: d7f99c05e62d5b8c8f505240e532565d5b17fd98

@poiana poiana added the approved label Mar 4, 2022
@JGodin-C2C
Copy link
Contributor Author

/kind cleanup

@Issif
Copy link
Member

Issif commented Mar 10, 2022

Just a question, is this change breaking something? I tried yesterday with current Loki output and it still works with last release of Loki.

@JGodin-C2C
Copy link
Contributor Author

Hey @Issif ,
This api endpoint as been deprecated at least since 1.6.0
I don't know about other previous versions as documentation does not seems to be available ?
I will check with the guys from grafana i guess ?
J\x00

@JGodin-C2C
Copy link
Contributor Author

@Issif
It looks like the new api endpoint have been introduced long time ago.

I asked about there plan for this endpoint removal here :

https://community.grafana.com/t/endpoint-deprecation/62271

J\x00

@JGodin-C2C
Copy link
Contributor Author

I changed the logic to variabilise in a config file the endpoint.
THis should not break ANYTHING and still futur proof.

@poiana poiana requested a review from Issif April 20, 2022 12:02
@poiana poiana removed the approved label Apr 20, 2022
@Issif Issif closed this Apr 23, 2022
2.x automation moved this from In progress to Done Apr 23, 2022
@Issif Issif reopened this Apr 23, 2022
2.x automation moved this from Done to In progress Apr 23, 2022
@Issif
Copy link
Member

Issif commented Apr 26, 2022

@JGodin-C2C can you squash your commits please, I think it will think the DCO detection issue, thanks. I'll approve it right after

what :

According to the documentation :

https://grafana.com/docs/loki/latest/api/#post-apiprompush

/api/prom/push is deprecated and is replaced by /loki/api/v1/push

why :

standard api update

We are allowing the configuration of the endpoint .
This will NOT break alreadyu deployed lokisidekcick and is still futur
proof

Signed-off-by: Julien Godin <julien.godin@camptocamp.com>
@Issif Issif closed this Apr 26, 2022
2.x automation moved this from In progress to Done Apr 26, 2022
@Issif Issif reopened this Apr 26, 2022
2.x automation moved this from Done to In progress Apr 26, 2022
@poiana poiana added the lgtm label Apr 26, 2022
@poiana
Copy link

poiana commented Apr 26, 2022

LGTM label has been added.

Git tree hash: 9d7b63bc2445fa269c5b35c44abf47b5a9719e54

@poiana
Copy link

poiana commented Apr 26, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Issif, JGodin-C2C

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 4ebeb04 into falcosecurity:master Apr 26, 2022
2.x automation moved this from In progress to Done Apr 26, 2022
@Issif Issif mentioned this pull request May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
2.x
Done
Development

Successfully merging this pull request may close these issues.

None yet

3 participants