GithubHelp home page GithubHelp logo

REST API For update Rules about thanos HOT 4 OPEN

ink1337 avatar ink1337 commented on June 16, 2024 2
REST API For update Rules

from thanos.

Comments (4)

ink1337 avatar ink1337 commented on June 16, 2024

Please let me know if it is even possible:)

from thanos.

yeya24 avatar yeya24 commented on June 16, 2024

Hi @ink1337 , There is no API for that right now.

I am working with Kuberenetes and I need to update Alerting Rules/Recording Rules in the runtime and I can't find proper way to do that.

If you are using k8s then you can run Prometheus Operator, which allows you to run Thanos Ruler and you can create/update/delete rules using k8s API.

from thanos.

ink1337 avatar ink1337 commented on June 16, 2024

Thank you for your answer @yeya24 !
By:

allows you to run Thanos Ruler and you can create/update/delete rules using k8s API.

do you mean editing PrometheusRule objects directly via the k8s API?

To clarify, I have a service on k8s that should configure Thanos rules at runtime, as is possible via the cortex.
I am also trying to understand the idea of sidecar for thanos, capable of editing rule file and exposing REST API for it.
I am not sure if i am on the right track...

There is no API for that right now.

So, is there a chance for it to be delivered in the future?

from thanos.

yeya24 avatar yeya24 commented on June 16, 2024

do you mean editing PrometheusRule objects directly via the k8s API?

Yes.

To clarify, I have a service on k8s that should configure Thanos rules at runtime, as is possible via the cortex.
I am also trying to understand the idea of sidecar for thanos, capable of editing rule file and exposing REST API for it.
I am not sure if i am on the right track...

I think you can do that. It is similar to how the PrometheusRule works in the operator actually.

So, is there a chance for it to be delivered in the future?

No one is currently working on it right now I believe. Contribution is welcomed and we need a proper design for this feature first.

from thanos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.