tacker.sol_refactored.common.prometheus_plugin module¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPlugin¶
Bases:
object- parse_datetime(isodate)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginAutoHealing¶
Bases:
PrometheusPlugin,MonitoringPlugin- alert(**kwargs)¶
- default_callback(context, vnf_instance_id, vnfc_info_id)¶
- static instance()¶
- set_callback(notification_callback)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginAutoScaling¶
Bases:
PrometheusPlugin,MonitoringPlugin- alert(**kwargs)¶
- default_callback(context, vnf_instance_id, scaling_param)¶
- static instance()¶
- set_callback(notification_callback)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginFm¶
Bases:
PrometheusPlugin,MonitoringPlugin- alert(**kwargs)¶
- create_new_alarm(context, alert_entry, datetime_now)¶
- create_or_update_alarm(context, alert_entry, datetime_now)¶
- default_callback(context, alarm)¶
- get_not_cleared_alarms(context, vnf_instance_id, fingerprint)¶
- static instance()¶
- set_callback(notification_callback)¶
- update_alarm(context, not_cleared, ends_at, datetime_now)¶
- vnfc_instance_ids(context, vnf_instance_id, alert_entry)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginPm¶
Bases:
PrometheusPluginPmBase,MonitoringPlugin- alert(**kwargs)¶
- create_job(**kwargs)¶
- decompose_metrics_vnfc(pm_job)¶
- decompose_metrics_vnfintextcp(pm_job)¶
- default_callback(context, entries)¶
- delete_job(**kwargs)¶
- filter_alert_by_time(context, pm_job, datetime_now, object_instance_id, sub_object_instance_id, metric)¶
- get_datetime_of_latest_report(context, pm_job, object_instance_id, sub_object_instance_id, metric)¶
- get_vnf_instances(context, pm_job)¶
- static instance()¶
- set_callback(notification_callback)¶
- valid_alert(pm_job, object_instance_id, sub_object_instance_id)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginPmBase¶
Bases:
PrometheusPlugin- alert(**kwargs)¶
- convert_measurement_unit(metric, value)¶
- decompose_metrics(pm_job_or_threshold)¶
- delete_rules(context, pm_job_or_threshold)¶
- get_access_info(pm_job_or_threshold)¶
- get_compute_resource_by_sub_obj(inst, sub_obj)¶
- get_namespace(inst)¶
- get_pod_regexp(inst)¶
- get_vnfc_resource_info(inst)¶
- load_prom_config()¶
- make_prom_ql(target, pod, collection_period=30, reporting_period=90, sub_object_instance_id='*', pm_type='PMJob', namespace='default')¶
- make_rule(type, id, object_instance_id, sub_object_instance_id, metric, expression, collection_period=30)¶
- make_rules(context, pm_job_or_threshold)¶
- reload_prom_server(context, reload_uri)¶
- set_callback(notification_callback)¶
- upload_rules(context, target_list, reload_list, rule_group, id)¶
- verify_rule(host, port, user, password, path, id)¶
- class tacker.sol_refactored.common.prometheus_plugin.PrometheusPluginThreshold¶
Bases:
PrometheusPluginPmBase,MonitoringPlugin- create_threshold(**kwargs)¶
- decompose_metrics_vnfc(pm_threshold)¶
- decompose_metrics_vnfintextcp(pm_threshold)¶
- default_callback(context, threshold_states)¶
- delete_threshold(**kwargs)¶
- get_vnf_instances(context, pm_threshold)¶
- static instance()¶
- set_crossing_direction(threshold_new_value, threshold_last_value, threshold_value, threshold_hysteresis)¶
- set_threshold_last_value(threshold_value, pm_threshold_state)¶
- valid_alert(pm_threshold, metric, object_instance_id, sub_object_instance_id)¶