Remove images count (which is horribly slow in InnoDB) and add a max gauge
This commit is contained in:
parent
0003022549
commit
407341fe96
2 changed files with 4 additions and 5 deletions
|
@ -7,7 +7,6 @@ from data.database import UseThenDisconnect
|
|||
from data import model
|
||||
from data.model.image import total_image_count
|
||||
from util.locking import GlobalLock, LockNotAcquiredException
|
||||
from workers.securityworker import images_gauge
|
||||
from workers.worker import Worker
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
@ -43,8 +42,6 @@ class GlobalPrometheusStatsWorker(Worker):
|
|||
metric_queue.org_count.Set(model.organization.get_active_org_count())
|
||||
metric_queue.robot_count.Set(model.user.get_robot_count())
|
||||
|
||||
images_gauge.Set(total_image_count())
|
||||
|
||||
|
||||
def main():
|
||||
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
|
||||
|
|
Reference in a new issue