Fujio,

Check out `/_expvar`. There are gobs of stats there, albeit at the server 
level. 

For more examples, see https://github.com/zgramana/expvarmon

This console app will display perf counters as curses sparklines. You can grab 
binaries on the releases tab.

> On Nov 25, 2015, at 11:07 PM, househippo <[email protected]> wrote:
> 
> Did a little more digging on the below GET handle. It goes to: 
> https://github.com/couchbase/sync_gateway/blob/master/src/github.com/couchbase/sync_gateway/rest/api.go
> 
> and the built-in function below.
> 
> runtime.ReadMemStats(&st.MemStats)
> 
> so its just pulling memory profile from golang. There are some other methods 
> that runtime also has. LINK here: https://golang.org/pkg/runtime/
> 
> I'll see if I can append some more KPIs to the _stats call.
> 
> 
>> On Wednesday, November 25, 2015 at 12:22:16 AM UTC-7, househippo wrote:
>> 
>> In 
>> https://github.com/couchbase/sync_gateway/blob/master/src/github.com/couchbase/sync_gateway/rest/routing.go
>> 
>> there are some stats here at line: 
>> 
>>      Handle("/_stats", makeHandler(sc, adminPrivs, 
>> (*handler).handleStats)).Methods("GET")
>> 
>> via http://<sync_gateway_host>:4985/_stats/
>> 
>> 
>>> On Tuesday, November 24, 2015 at 5:46:48 PM UTC-7, househippo wrote:
>>> It be great to have REST call  to get sync gateway stats for a specific db 
>>> and channels. Something similar to Couchbase servers 
>>> /pools/default/bucktes/{bucket}/nodes/{cb-node}/stats
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Couchbase Mobile" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mobile-couchbase/729de4cc-5573-4dbd-85dd-ef5d5cd53725%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/3BD72E97-ADEC-4635-9A0B-7769502B92FD%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to