Skip to content

Fujio-Turner/sg-stats-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sg-stats-demo

This script pulls stats from the Sync Gateway Admin port localhost:4985/_expvar,in real time, and puts them into a basic graph in the browser.

http://localhost:8000

HOW TO USE

#/path/to/sg-stats-demo/ ./sg-stats-demo.py

Stats/Data Currently the browser only shows data for:

Revision Cache Misses vs Revision Cache Hits - Total number of times a revision-cache lookup failed vs Total number of times a revision-cache lookup succeeded (as a percentage).

Active _changes Feeds - Current number of active _changes feeds.

Max Pending - Total max number of sequences waiting on a missing earlier sequence number

Out Of Order - Total number of out-of-order sequences posted

View Queries - Total number of view queries to channels view

_expvar

Here is a link about whats in the _expvar https://developer.couchbase.com/documentation/mobile/2.0/references/sync-gateway/admin-rest-api/index.html#/server/get__expvar

Compatibility

Works with SG 2.x and lower.

REQUIREMENTS

PYTHON 2.7+

Web Browser

About

Tool to Monitor Sync Gateway Stats

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published