def get_data(): data = {} data['buckets-denied'] = list(conn.smembers('buckets-denied')) data['buckets-complete'] = list(conn.smembers('buckets-complete')) data['buckets-start'] = conn.hgetall('buckets-start') data['buckets-end'] = conn.hgetall('buckets-end') data['bucket-partitions'] = { k: int(v) for k, v in conn.hgetall('bucket-partition').items() } data['buckets-error'] = conn.hgetall('buckets-unknown-errors') data['bucket-size'] = { k: float(v) for k, v in conn.hgetall('bucket-size').items() } data['keys-scanned'] = { k: float(v) for k, v in conn.hgetall('keys-scanned').items() } data['keys-matched'] = { k: float(v) for k, v in conn.hgetall('keys-matched').items() } data['keys-denied'] = { k: float(v) for k, v in conn.hgetall('keys-denied').items() } return data
def get_data(): data = {} data['buckets-denied'] = list( conn.smembers('buckets-denied')) data['buckets-complete'] = list( conn.smembers('buckets-complete')) data['buckets-start'] = conn.hgetall('buckets-start') data['buckets-end'] = conn.hgetall('buckets-end') data['bucket-partitions'] = { k: int(v) for k, v in conn.hgetall('bucket-partition').items()} data['buckets-error'] = conn.hgetall( 'buckets-unknown-errors') data['bucket-size'] = { k: float(v) for k, v in conn.hgetall('bucket-size').items()} data['keys-scanned'] = { k: float(v) for k, v in conn.hgetall('keys-scanned').items()} data['keys-matched'] = { k: float(v) for k, v in conn.hgetall('keys-matched').items()} data['keys-denied'] = { k: float(v) for k, v in conn.hgetall('keys-denied').items()} return data
def get_data(): data = {} data['bucket-age'] = conn.hgetall('bucket-ages') data['buckets-denied'] = list( conn.smembers('buckets-denied')) data['buckets-complete'] = list( conn.smembers('buckets-complete')) data['buckets-start'] = conn.hgetall('buckets-starts') data['buckets-inventory'] = conn.hgetall('buckets-inventory') data['bucket-partitions'] = { k: int(v) for k, v in conn.hgetall('bucket-partition').items()} data['buckets-error'] = conn.hgetall( 'buckets-unknown-errors') data['bucket-size'] = { k: float(v) for k, v in conn.hgetall('bucket-sizes').items()} data['bucket-region'] = conn.hgetall('bucket-regions') data['bucket-versions'] = { k: bool(int(v)) for k, v in conn.hgetall('bucket-versions').items()} # key stats for k in ('keys-scanned', 'keys-matched', 'keys-denied', 'keys-missing', 'keys-throttled', 'keys-sesserr', 'keys-connerr', 'keys-enderr', 'keys-error'): data[k] = { k: float(v) for k, v in conn.hgetall(k).items()} # metric/rate stats per period data['keys-count'] = { k: float(v) for k, v in conn.hgetall('keys-count').items()} data['keys-time'] = { k: float(v) for k, v in conn.hgetall('keys-time').items()} data['bucket-pages'] = { k: float(v) for k, v in conn.hgetall('bucket-pages').items()} data['bucket-pages-time'] = { k: float(v) for k, v in conn.hgetall('bucket-pages-time').items()} return data
def get_data(): data = {} data['bucket-age'] = conn.hgetall('bucket-ages') data['buckets-denied'] = list(conn.smembers('buckets-denied')) data['buckets-complete'] = list(conn.smembers('buckets-complete')) data['buckets-start'] = conn.hgetall('buckets-starts') data['buckets-inventory'] = conn.hgetall('buckets-inventory') data['bucket-partitions'] = { k: int(v) for k, v in conn.hgetall('bucket-partition').items() } data['buckets-error'] = conn.hgetall('buckets-unknown-errors') data['bucket-size'] = { k: float(v) for k, v in conn.hgetall('bucket-sizes').items() } data['bucket-region'] = conn.hgetall('bucket-regions') data['bucket-versions'] = { k: bool(int(v)) for k, v in conn.hgetall('bucket-versions').items() } # key stats for k in ('keys-scanned', 'keys-matched', 'keys-denied', 'keys-missing', 'keys-throttled', 'keys-sesserr', 'keys-connerr', 'keys-enderr', 'keys-error'): data[k] = {k: float(v) for k, v in conn.hgetall(k).items()} # metric/rate stats per period data['keys-count'] = { k: float(v) for k, v in conn.hgetall('keys-count').items() } data['keys-time'] = { k: float(v) for k, v in conn.hgetall('keys-time').items() } data['bucket-pages'] = { k: float(v) for k, v in conn.hgetall('bucket-pages').items() } data['bucket-pages-time'] = { k: float(v) for k, v in conn.hgetall('bucket-pages-time').items() } return data