Thanks Zack,

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

That puts more structure to the stats to sync_gateway.

I was looking at this. https://github.com/shirou/gopsutil to get some other 
stats too. It does do to much more

I'll looking into per sync_gateway {db} & channel(s) status later.
something like http://<hostname>:4985/{db}/_stats 


On Wednesday, December 2, 2015 at 8:50:19 AM UTC-8, Zachary Gramana wrote:
>
> 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] 
> <javascript:>> 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] <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/mobile-couchbase/729de4cc-5573-4dbd-85dd-ef5d5cd53725%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/mobile-couchbase/729de4cc-5573-4dbd-85dd-ef5d5cd53725%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/664b3604-cb39-4c11-af0b-759c4c131d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to