Git Product home page Git Product logo

Comments (5)

Nexucis avatar Nexucis commented on July 19, 2024

yup adding a new field (array or not) in a JSON is not a breaking change and it won't break old client consuming the prometheus API.
So it will be up to the user/developer to update their client to consider this new JSON field.

On Perses side, we are displaying the first warning message if there is one. In case there is a new field info, we will just have to update this code to consider this new information.

And since it's an optional field, then the code is retro-compatible and can work with previous Prometheus version.

So there is no issue to update a client (and UI) to be compatible with the last Prometheus version and then used with a n-1 version

from prometheus.

zenador avatar zenador commented on July 19, 2024

I'll work on this as discussed

from prometheus.

beorn7 avatar beorn7 commented on July 19, 2024

#14327 has added the additional key, but we still need to update the documentation, see https://github.com/prometheus/prometheus/blob/main/docs/querying/api.md

from prometheus.

juliusv avatar juliusv commented on July 19, 2024

@beorn7 My stab at the docs for it: #14429

from prometheus.

beorn7 avatar beorn7 commented on July 19, 2024

Aaaaand it's done. Thanks @zenador and @juliusv .

from prometheus.

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.