Move the total image count stat back to the prom stat worker
This commit is contained in:
parent
deb2b1b003
commit
add6b654ae
3 changed files with 5 additions and 13 deletions
|
@ -7,7 +7,7 @@ from app import app, secscan_api, prometheus
|
|||
from workers.worker import Worker
|
||||
from data.database import UseThenDisconnect
|
||||
from data.model.image import (get_images_eligible_for_scan, get_max_id_for_sec_scan,
|
||||
get_min_id_for_sec_scan, get_image_id, total_image_count)
|
||||
get_min_id_for_sec_scan, get_image_id)
|
||||
from util.secscan.api import SecurityConfigValidator
|
||||
from util.secscan.analyzer import LayerAnalyzer, PreemptedException
|
||||
from util.migrate.allocator import yield_random_entries
|
||||
|
@ -64,8 +64,6 @@ class SecurityWorker(Worker):
|
|||
abt.set()
|
||||
|
||||
unscanned_images_gauge.Set(num_remaining)
|
||||
images_gauge.Set(total_image_count())
|
||||
|
||||
|
||||
# If we reach this point, we analyzed every images up to max_id, next time the worker runs,
|
||||
# we want to start from the next image.
|
||||
|
|
Reference in a new issue