Grafana + Graphite: sum over time, with static beginning of time range - graphite

I am using Grafana with Graphite.
I have a metric for tickets that changed state to Closed. Applying integral() and keepLastValue() I am able to plot the current Closed tickets. As integral() resets (starts at zero) on the left side of the graph I only get the Closed tickets for the defined time period. I also need previous Closed tickets.
For instance, if there were 5 closed tickets in day 1, when ploting the closed tickets for day 2 (time range from: day 2 midnight), I want those 5 tickets to be accounted.
Is there some way to acomplish this with Grafana and Graphite?
Thanks.

Rather than storing a 1 for each ticket that's closed and using integral(), store the total number of closed tickets every minute.
That way you already have the data in the form you need for the graph you want.
To generate a graph that shows the ticket close activity you'd then use derivative().

Related

Check periodically when API, when returns true/false update firestore [duplicate]

This question already has answers here:
Is there any TTL (Time To Live ) for Documents in Firebase Firestore
(3 answers)
Firebase functions updating / deleting document after a certain time
(1 answer)
Overwrite firestore field after 5 minutes of no update
(1 answer)
Closed 12 months ago.
I am unsure of which solution or Google product to use. The flow is as follows:
We have a collection in firestore for each product.
A product gets purchased and enters a "pending" collection.
That product in "pending" may take 1 minute to a few hours to confirm.
We want to check every few minutes or so for the first hour to see if it has confirmed.
If it doesn't confirm within the hour then we want to check less regularly to eventually decide an outcome of confirmed or failed.
I am using firebase functions and firestore currently. Considered using Google Cloud Tasks but not sure if there is a simple solution I am overlooking.

Firebase RealTime Database Cron Job [duplicate]

This question already has answers here:
How to run cron job with Firebase?
(6 answers)
Cloud Functions for Firebase trigger on time?
(3 answers)
Closed 1 year ago.
I using Firebase Real-Time Database.
My example structure:
fruits:{
apple:{
soldAllTime:500
Verify:true
soldDaily:30
},
banana:{
soldAllTime:350
Verify:true
soldDaily:27
},
}
II want all 'soldDaily's to be reset at 00:00 UTC every day. What is the easiest and most logical way?
Yes, there is an option in Firebase. Its called schedule functions. With this, you can schedule a task based on time interval like every 5 mins etc., or based on exact time like every day at 12:00 PM.
However, you need to have Blaze plan in order to use this feature.
Check this answer.

Multi-Channel Funnels response per day not total

I'm doing this request in Python / Postman:
https://www.googleapis.com/analytics/v3/data/mcf?
ids=ga:xxxx&metrics=
mcf:assistedConversions&
dimensions=&
start-date=2011-10-01&
end-date=2011-10-31
But I only seem to be able to get the total number of results.
1/ Can I get it on a daily granularity? I know that GA API has the ga:date optional parameter, but this does not work in combination with the MCF API and I couldn't find anything similar for MCF.
Do I have to iterate through each day to get the results at a daily granularity?
2/ Is the 30 days lookback applied to API calls? If just put the end date 4 years ahead, will it give me the full results?
Daily granularity: You should add the mcf:nthDay dimension to break the results down into individual days within the specified range:
Index for each day in the specified date range. Index for the first
day (i.e., start-date) in the date range is 0, 1 for the second day,
and so on.
Loopback time: yes it's 30 days and can'be be changed:
Note: The Multi-Channel Funnels Reporting API uses a non-adjustable
30-day lookback window.
If just put the end date 4 years ahead, will it give me the full results?
Why don't you test to find out and let us know :) ?

Clockify Saved Reports for Half Month

Is there anyway to save reports in Clockify for a half-month period (i.e. 1-15th of the month and 16th-end)? We pay twice monthly and ideally can save off a report that can be used for a half month period.
UPDATE
Choosing a 15 day range 1st-15th and then scrolling does not work as Clockfy maintains the range size (15 days) rather than the concept of half month.
UPDATE2
Perhaps the question can better be phrased as: "does Clockify have any sort of semantic period of time for 'half-month' (aka semimonthly) that will be maintained when advancing time periods?"

Searching a range of events in a time graph

I'm trying to implement the graph from this blog post: http://blog.neo4j.org/2012/02/modeling-multilevel-index-in-neoj4.html
Inside the blogpost is a schematic of the graph and a query on how to find a range of events. However in my use case i don't have a set consecutive days. So for example the current state of the graph could be that i have day nodes from 12-7-2013 (12 july 2013) to 12-8-2013 (12 august 2013). Then when adding an event on 12-7-2014 i'm missing all the inbetween days for a whole year!
First problem is if i start to write queries that generate those days it might become very slow (application needs to be responsive). Second problem is i end up with days on which no event could be taken place, and so have unneeded data in my database.
So my question is: How can i get a range of events without using the NEXT relation between days?

Resources