示例#1
0
def send_mongodb():
    to_send = {
        'gauges': MongoDBMetrics().get_gauges()
    }
    print "Mongodb Metrics update: {}".format(datetime.datetime.now(utc))
    metric_server.post_metrics(to_send)
示例#2
0
def send_mongodb():
    to_send = {'gauges': MongoDBMetrics().get_gauges()}
    print "Mongodb Metrics update: {}".format(datetime.datetime.now(utc))
    metric_server.post_metrics(to_send)
示例#3
0
def send_redisdb():
    to_send = {
        'gauges': RedisMetrics().get_gauges()
    }
    print "Redis Metrics update: {}".format(datetime.datetime.now(utc))
    metric_server.post_metrics(to_send)
示例#4
0
def send_redisdb():
    to_send = {'gauges': RedisMetrics().get_gauges()}
    print "Redis Metrics update: {}".format(datetime.datetime.now(utc))
    metric_server.post_metrics(to_send)