mirror of
https://github.com/ansible/awx.git
synced 2026-03-16 16:37:30 -02:30
Per-service metrics http server
* 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
This commit is contained in:
committed by
Chris Meyers
parent
6dcaa09dfb
commit
8a902debd5
@@ -1076,6 +1076,35 @@ HOST_METRIC_SUMMARY_TASK_LAST_TS = None
|
||||
HOST_METRIC_SUMMARY_TASK_INTERVAL = 7 # days
|
||||
|
||||
|
||||
# TODO: cmeyers, replace with with register pattern
|
||||
# The register pattern is particularly nice for this because we need
|
||||
# to know the process to start the thread that will be the server.
|
||||
# The registration location should be the same location as we would
|
||||
# call MetricsServer.start()
|
||||
# Note: if we don't get to this TODO, then at least create constants
|
||||
# for the services strings below.
|
||||
# TODO: cmeyers, break this out into a separate django app so other
|
||||
# projects can take advantage.
|
||||
|
||||
METRICS_SERVICE_CALLBACK_RECEIVER = 'callback_receiver'
|
||||
METRICS_SERVICE_DISPATCHER = 'dispatcher'
|
||||
METRICS_SERVICE_WEBSOCKETS = 'websockets'
|
||||
|
||||
METRICS_SUBSYSTEM_CONFIG = {
|
||||
'server': {
|
||||
METRICS_SERVICE_CALLBACK_RECEIVER: {
|
||||
'port': 8014,
|
||||
},
|
||||
METRICS_SERVICE_DISPATCHER: {
|
||||
'port': 8015,
|
||||
},
|
||||
METRICS_SERVICE_WEBSOCKETS: {
|
||||
'port': 8016,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# django-ansible-base
|
||||
ANSIBLE_BASE_TEAM_MODEL = 'main.Team'
|
||||
ANSIBLE_BASE_ORGANIZATION_MODEL = 'main.Organization'
|
||||
|
||||
Reference in New Issue
Block a user