Ejemplo n.º 1
0
def importer_depth_rrd():
    """Add these counts to the rrd graph"""
    rrd = ImportQueueDepth(
        ini.get('rrd_data').format(here=HERE),
        ini.get('rrd_graphs').format(here=HERE))
    rrd.mark(datetime.now(), ImportQueueMgr.size())
    rrd.update()
Ejemplo n.º 2
0
def importer_depth_rrd():
    """Add these counts to the rrd graph"""
    rrd = ImportQueueDepth(
        ini.get('rrd_data').format(here=HERE),
        ini.get('rrd_graphs').format(here=HERE))
    rrd.mark(
        datetime.now(),
        ImportQueueMgr.size()
    )
    rrd.update()
Ejemplo n.º 3
0
 def count_importer_depth():
     """Mark how deep the importer queue is at the moment"""
     total = ImportQueueMgr.size()
     stat = StatBookmark(attrib=IMPORTER_CT, data=total)
     DBSession.add(stat)