-
Notifications
You must be signed in to change notification settings - Fork 104
Support efficient "lastUpdate" endpoint #1570
Comments
how about we also add an optional |
or we support a "format" param similar to /metrics/find, and introduce a format for both of these that includes lastUpdate. |
I'm not sure I do agree that the implementation should not interfere with existing cluster operation. I'm also ok with it being a parameter to the existing endpoint. |
Currently, you can do:
and get something like :
If I understand @Dieterbe correctly, we might support something like:
and get something similar to :
|
I we want something even more targeted (read: efficient JSON encoding):
and get something similar to :
|
i would be open to either or both (a full dump of each MetricDefinition or idx.Archive), or the id-lastUpdate pairs. Thoughts on messagepack? efficiency maybe not worth the extra hassle... |
I'm ok with messagepack. It makes the integer encoding/decoding more efficient. Might only be a small portion of data in this case (compared to long series names). Maybe the Implementation note: The Edit: I was wrong. |
this seems to verge on overkill. |
That's fair. I'll probably implement only the following initially: Names are definitely open to suggestions for improvement |
i like the separator. i was thinking |
The master implementation of
the strings it is returning is:
not the actual series name. heh :?
if this is something we don't need yet, i'm hesitant to commit to a particular API. I see that your PR doesn't add this, so I think we're good then. |
Yeah, I punted on the full definition, since it's a non-trivial structure (given that there can be multiple definitions for a single series name). But, the |
We have a use case (detecting absence of metrics) where we want an efficient method of querying for a the lastUpdate value for series that match an expression. Specifically, we don't care what the last value was, just the most recent timestamp. This means that the query should be very efficient since it never needs to fetch any data.
Existing endpoint
/tags/findSeries
is close, but don't offer thelastUpdate
value.I am willing to implement the endpoint, but submitting the issue to kickoff design discussion / feedback.
The text was updated successfully, but these errors were encountered: