mirror of
https://github.com/ansible/awx.git
synced 2026-03-28 14:25:05 -02:30
add insights setting to metrics
This commit is contained in:
@@ -48,18 +48,17 @@ INSTANCE_STATUS = Gauge('awx_instance_status_total', 'Status of Job launched', [
|
|||||||
|
|
||||||
def metrics():
|
def metrics():
|
||||||
license_info = get_license(show_key=False)
|
license_info = get_license(show_key=False)
|
||||||
SYSTEM_INFO.info({
|
SYSTEM_INFO.info({'system_uuid': settings.SYSTEM_UUID,
|
||||||
'system_uuid': settings.SYSTEM_UUID,
|
'insights_analytics': str(settings.INSIGHTS_DATA_ENABLED),
|
||||||
'tower_url_base': settings.TOWER_URL_BASE,
|
'tower_url_base': settings.TOWER_URL_BASE,
|
||||||
'tower_version': get_awx_version(),
|
'tower_version': get_awx_version(),
|
||||||
'ansible_version': get_ansible_version(),
|
'ansible_version': get_ansible_version(),
|
||||||
'license_type': license_info.get('license_type', 'UNLICENSED'),
|
'license_type': license_info.get('license_type', 'UNLICENSED'),
|
||||||
'free_instances': str(license_info.get('free instances', 0)),
|
'free_instances': str(license_info.get('free instances', 0)),
|
||||||
'license_expiry': str(license_info.get('time_remaining', 0)),
|
'license_expiry': str(license_info.get('time_remaining', 0)),
|
||||||
'pendo_tracking': settings.PENDO_TRACKING_STATE,
|
'pendo_tracking': settings.PENDO_TRACKING_STATE,
|
||||||
'external_logger_enabled': str(settings.LOG_AGGREGATOR_ENABLED),
|
'external_logger_enabled': str(settings.LOG_AGGREGATOR_ENABLED),
|
||||||
'external_logger_type': getattr(settings, 'LOG_AGGREGATOR_TYPE', 'None')
|
'external_logger_type': getattr(settings, 'LOG_AGGREGATOR_TYPE', 'None')})
|
||||||
})
|
|
||||||
|
|
||||||
current_counts = counts(datetime.now())
|
current_counts = counts(datetime.now())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user