GithubHelp home page GithubHelp logo

Comments (7)

matttproud avatar matttproud commented on May 1, 2024
  1. Does the same expression work through the web expression browser interface?
  2. Can you provide a prototype expression that you used in the report including a prototype of the type of metrics against which you want to execute it?
  3. Which revision of the server did you run this against?

from prometheus.

peterbourgon avatar peterbourgon commented on May 1, 2024
  1. Yes, and it works fine if I serialize or stagger my GETs, too.
  2. http://xen-10-20-2-96.int.s-cloud.net:9090/api/query?expr=AVG%28indexer_poke_duration_nanoseconds%7Bstage%3D%22overall%22%7D%29&json=JSON
  3. adeabca

from prometheus.

peterbourgon avatar peterbourgon commented on May 1, 2024

In an IM, Matt writes:

For long-standing queries, you probably want to add a rule to the rules file.

We're still in exploratory mode, but I'll definitely do this long-term. The context here is getting instantaneous values for the purposes of alerting. A "rule" is a precomputed expression? (Where does the "rule" terminology come from?)

A side-question I was going to raise later is: how do I construct an expression to get a scalar value (say average) over a certain time window? "Windowing" is exposed in the Graph UI as Range, but not in the expression grammar or query API as far as I could tell.

from prometheus.

juliusv avatar juliusv commented on May 1, 2024

Right, this is a known caveat still and I just didn't think anyone would hit it that early on in the experimental phase:

https://github.com/prometheus/prometheus/blob/master/rules/load.go#L25

I'll prioritize this.

from prometheus.

peterbourgon avatar peterbourgon commented on May 1, 2024

I just didn't think anyone would hit it that early on in the experimental phase:

:D

tumblr_m5zawdsn1D1rtozc7o1_400

from prometheus.

juliusv avatar juliusv commented on May 1, 2024

Yeah, quite impressive, since the parsing time should be so negligibly small compared to the rest of the expression evaluation that it should be quite hard to trigger this condition under normal circumstances. In fact, I haven't managed to recreate it yet with 4 parallel curls, but they are probably just too slow. I think I'll just wrap the entire parser in a lock, since goyacc/golex don't give me much better options :-/

from prometheus.

lock avatar lock commented on May 1, 2024

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

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.