1)
https://docs.influxdata.com/influxdb/v0.13/guides/querying_data/#other-options-when-querying-data.
Basically, add "&epoch=ms" to your HTTP query string

2) COUNT(value)

On Thu, Jun 23, 2016 at 10:18 AM, <[email protected]> wrote:

> Hi,
>
> I'm trying to monitor REST calls.  I'm looking for a couple of
> measurements.
>
> 1 How long it takes to complete the rest call in milliseconds
> 2 How many times the rest call is called.
>
>
>
> I've been able to instrument my service, but I'm not sure how to get the
> y-axis to milliseconds or how to count the calls.
>
> I've dug around, but not figured out the proper thing to do.
>
> I"m using the line protocol with udp.  I have the data flowing
>
> here is an example of what I'm writing
>
> /rest/:id/tasks/checkin,method=GET,route=/sbm/7766b0b4-5f8f-48e8-a890-5e043cc1ad69/tasks/checkin,code=200i
> value=1935379i 1466691860481388548
>
>
> the value and the timestamp are in nanoseconds.
> The value is the duration in nanoseconds of the call
>
> my query is
> SELECT value FROM mydb.."/rest/:id/tasks/checkin" WHERE tmpltime()
>
> 1) how do I tell the query that I want it in milliseconds?
> 2) how do I count the number of times it was called.
>
>
>
> --
> Remember to include the InfluxDB version number with all issue reports
> ---
> You received this message because you are subscribed to the Google Groups
> "InfluxDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/influxdb.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/influxdb/b923b45f-0b9c-407f-84f1-75dd2cd91e21%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Sean Beckett
Director of Support and Professional Services
InfluxDB

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/CALGqCvPTmKZkthEitkGqHAS6ki8jAd7TuByKDLOo_Dp2-wzw1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to