You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently building UI for Kapacitor (that I hope to release in a month) and I am showing a list of all tasks.
I want to add to each task the number of points he processed and how much he outputed (points written or alerts triggered).
In the current api it will be slow, because I will need to fetch all tasks (using "/tasks") and fetch each task and parse it's dot file. and I want to do this every 10 seconds or something.
So I thoought about adding to "/tasks" something like this:
Where the Inputs and Outputs are key value of how much they emitted.
I digged to the source code and found a way to do so, but I am not sure about this, and I want OK before I code it out.
I need node to export how much they emitted - and this can be calculated by the summing the "emitted" in Edge statsMap.
Add to ExecutingTask function that will return "ExecutionStats" struct that will:
Input nodes:
Find them all by checking their type StreamNode/ BatchNode
Get their value - by summing the edge outs emitted
Output nodes:
Find the output nodes by the next predicate: node that have parents and doesn't have child nodes.
Expose function on "Node" (is this the right place) - that will return how much their outputed
@nathanielc What do you think? am I in the right direction?
The text was updated successfully, but these errors were encountered:
Hi,
I am currently building UI for Kapacitor (that I hope to release in a month) and I am showing a list of all tasks.
I want to add to each task the number of points he processed and how much he outputed (points written or alerts triggered).
In the current api it will be slow, because I will need to fetch all tasks (using "/tasks") and fetch each task and parse it's dot file. and I want to do this every 10 seconds or something.
So I thoought about adding to "/tasks" something like this:
Where the Inputs and Outputs are key value of how much they emitted.
I digged to the source code and found a way to do so, but I am not sure about this, and I want OK before I code it out.
@nathanielc What do you think? am I in the right direction?
The text was updated successfully, but these errors were encountered: