mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
* Organize metrics into their respective service * Server per-service metrics on a per-service http server * Increase prometheus client usage over our custom metrics fields
16 lines
413 B
Python
16 lines
413 B
Python
# Python
|
|
import logging
|
|
|
|
# AWX
|
|
from awx.main.analytics.subsystem_metrics import DispatcherMetrics, CallbackReceiverMetrics
|
|
from awx.main.dispatch.publish import task
|
|
from awx.main.dispatch import get_task_queuename
|
|
|
|
logger = logging.getLogger('awx.main.scheduler')
|
|
|
|
|
|
@task(queue=get_task_queuename)
|
|
def send_subsystem_metrics():
|
|
DispatcherMetrics().send_metrics()
|
|
CallbackReceiverMetrics().send_metrics()
|