Module Expr Str ImportFrom alias Import alias ImportFrom alias alias ClassDef bases NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore NameLoad Assign NameStore Dict Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call NameLoad NameLoad attr Assign NameStore ListLoad BinOpMod Str NameLoad Assign NameStore NameLoad Assign NameStore NameLoad TryFinally body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad If CompareNotEq AttributeLoad NameLoad attr Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpMod Str NameLoad handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr ExceptHandler type NameLoad name NameStore body Assign NameStore Call NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr finalbody If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIs NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Raise Call NameLoad Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareGtE AttributeLoad NameLoad attr ListLoad Num Num Num body Assign NameStore Str orelse Assign NameStore Str Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr Str If CompareEq SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str body Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn Str NameLoad body Raise Call NameLoad Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Assign NameStore ListLoad Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str AugAssignAdd NameStore NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore BinOpAdd ListLoad BinOpAdd Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad Assign NameStore SubscriptLoad NameLoad Index Str For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body For NameStore SubscriptLoad NameLoad Index Str body Assign NameStore BinOpAdd ListLoad BinOpAdd Str SubscriptLoad NameLoad Index Str NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad SubscriptLoad NameLoad Index Str keyword NameLoad Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str keyword NameLoad For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call NameLoad NameLoad NameLoad SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore ListLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body For TupleStore NameStore TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list
N/A N/A Mesos Master check

Collects metrics from mesos master node, only the leader is sending metrics.
 hashlib md5 N/A requests checks AgentCheck CheckException MesosMaster N/A AgentCheck N/A N/A GAUGE N/A AgentCheck gauge N/A MONOTONIC_COUNT N/A AgentCheck monotonic_count N/A SERVICE_CHECK_NAME mesos_master.can_connect N/A service_check_needed True N/A FRAMEWORK_METRICS N/A cpus mem disk N/A mesos.framework.cpu GAUGE N/A mesos.framework.mem GAUGE N/A mesos.framework.disk GAUGE N/A ROLE_RESOURCES_METRICS N/A cpus mem disk N/A mesos.role.cpu GAUGE N/A mesos.role.mem GAUGE N/A mesos.role.disk GAUGE N/A CLUSTER_TASKS_METRICS N/A master/tasks_error master/tasks_failed master/tasks_finished master/tasks_killed master/tasks_lost master/tasks_running master/tasks_staging master/tasks_starting N/A mesos.cluster.tasks_error GAUGE N/A mesos.cluster.tasks_failed MONOTONIC_COUNT N/A mesos.cluster.tasks_finished MONOTONIC_COUNT N/A mesos.cluster.tasks_killed MONOTONIC_COUNT N/A mesos.cluster.tasks_lost MONOTONIC_COUNT N/A mesos.cluster.tasks_running GAUGE N/A mesos.cluster.tasks_staging GAUGE N/A mesos.cluster.tasks_starting GAUGE N/A CLUSTER_SLAVES_METRICS N/A master/slave_registrations master/slave_removals master/slave_reregistrations master/slave_shutdowns_canceled master/slave_shutdowns_scheduled master/slaves_active master/slaves_connected master/slaves_disconnected master/slaves_inactive master/recovery_slave_removals N/A mesos.cluster.slave_registrations GAUGE N/A mesos.cluster.slave_removals GAUGE N/A mesos.cluster.slave_reregistrations GAUGE N/A mesos.cluster.slave_shutdowns_canceled GAUGE N/A mesos.cluster.slave_shutdowns_scheduled GAUGE N/A mesos.cluster.slaves_active GAUGE N/A mesos.cluster.slaves_connected GAUGE N/A mesos.cluster.slaves_disconnected GAUGE N/A mesos.cluster.slaves_inactive GAUGE N/A mesos.cluster.recovery_slave_removals GAUGE N/A CLUSTER_RESOURCES_METRICS N/A master/cpus_percent master/cpus_total master/cpus_used master/disk_percent master/disk_total master/disk_used master/mem_percent master/mem_total master/mem_used N/A mesos.cluster.cpus_percent GAUGE N/A mesos.cluster.cpus_total GAUGE N/A mesos.cluster.cpus_used GAUGE N/A mesos.cluster.disk_percent GAUGE N/A mesos.cluster.disk_total GAUGE N/A mesos.cluster.disk_used GAUGE N/A mesos.cluster.mem_percent GAUGE N/A mesos.cluster.mem_total GAUGE N/A mesos.cluster.mem_used GAUGE N/A CLUSTER_REGISTRAR_METRICS N/A registrar/queued_operations registrar/registry_size_bytes registrar/state_fetch_ms registrar/state_store_ms registrar/state_store_ms/count registrar/state_store_ms/max registrar/state_store_ms/min registrar/state_store_ms/p50 registrar/state_store_ms/p90 registrar/state_store_ms/p95 registrar/state_store_ms/p99 registrar/state_store_ms/p999 registrar/state_store_ms/p9999 N/A mesos.registrar.queued_operations GAUGE N/A mesos.registrar.registry_size_bytes GAUGE N/A mesos.registrar.state_fetch_ms GAUGE N/A mesos.registrar.state_store_ms GAUGE N/A mesos.registrar.state_store_ms.count GAUGE N/A mesos.registrar.state_store_ms.max GAUGE N/A mesos.registrar.state_store_ms.min GAUGE N/A mesos.registrar.state_store_ms.p50 GAUGE N/A mesos.registrar.state_store_ms.p90 GAUGE N/A mesos.registrar.state_store_ms.p95 GAUGE N/A mesos.registrar.state_store_ms.p99 GAUGE N/A mesos.registrar.state_store_ms.p999 GAUGE N/A mesos.registrar.state_store_ms.p9999 GAUGE N/A CLUSTER_FRAMEWORK_METRICS N/A master/frameworks_active master/frameworks_connected master/frameworks_disconnected master/frameworks_inactive N/A mesos.cluster.frameworks_active GAUGE N/A mesos.cluster.frameworks_connected GAUGE N/A mesos.cluster.frameworks_disconnected GAUGE N/A mesos.cluster.frameworks_inactive GAUGE N/A SYSTEM_METRICS N/A system/cpus_total system/load_15min system/load_1min system/load_5min system/mem_free_bytes system/mem_total_bytes master/elected master/uptime_secs N/A mesos.stats.system.cpus_total GAUGE N/A mesos.stats.system.load_15min GAUGE N/A mesos.stats.system.load_1min GAUGE N/A mesos.stats.system.load_5min GAUGE N/A mesos.stats.system.mem_free_bytes GAUGE N/A mesos.stats.system.mem_total_bytes GAUGE N/A mesos.stats.elected GAUGE N/A mesos.stats.uptime_secs GAUGE N/A STATS_METRICS N/A master/dropped_messages master/outstanding_offers master/event_queue_dispatches master/event_queue_http_requests master/event_queue_messages master/invalid_framework_to_executor_messages master/invalid_status_update_acknowledgements master/invalid_status_updates master/valid_framework_to_executor_messages master/valid_status_update_acknowledgements master/valid_status_updates N/A mesos.cluster.dropped_messages GAUGE N/A mesos.cluster.outstanding_offers GAUGE N/A mesos.cluster.event_queue_dispatches GAUGE N/A mesos.cluster.event_queue_http_requests GAUGE N/A mesos.cluster.event_queue_messages GAUGE N/A mesos.cluster.invalid_framework_to_executor_messages GAUGE N/A mesos.cluster.invalid_status_update_acknowledgements GAUGE N/A mesos.cluster.invalid_status_updates GAUGE N/A mesos.cluster.valid_framework_to_executor_messages GAUGE N/A mesos.cluster.valid_status_update_acknowledgements GAUGE N/A mesos.cluster.valid_status_updates GAUGE _get_json N/A N/A self url timeout N/A N/A N/A aggregation_key N/A N/A N/A md5 url hexdigest N/A tags N/A N/A url:%s url N/A msg None N/A status None N/A N/A N/A N/A N/A r N/A N/A requests get url timeout timeout N/A N/A N/A r status_code 200 N/A N/A status N/A AgentCheck CRITICAL N/A msg N/A Got %s when hitting %s N/A N/A r status_code url N/A N/A status N/A AgentCheck OK N/A msg N/A Mesos master instance detected at %s  url N/A N/A N/A N/A N/A requests exceptions Timeout N/A e N/A N/A msg N/A %s seconds timeout when hitting %s N/A timeout url N/A status N/A AgentCheck CRITICAL N/A N/A Exception N/A e N/A N/A msg N/A str e N/A status N/A AgentCheck CRITICAL N/A N/A N/A self service_check_needed N/A N/A N/A N/A self service_check N/A self SERVICE_CHECK_NAME status tags tags message msg N/A N/A self service_check_needed False N/A N/A status N/A AgentCheck CRITICAL N/A N/A N/A N/A self service_check N/A self SERVICE_CHECK_NAME status tags tags message msg N/A N/A CheckException Cannot connect to mesos, please check your configuration. N/A N/A N/A r json N/A _get_master_state N/A N/A self url timeout N/A N/A N/A N/A N/A self _get_json N/A url /state.json timeout N/A _get_master_stats N/A N/A self url timeout N/A N/A N/A N/A N/A self version N/A 0 22 0 N/A N/A endpoint /metrics/snapshot N/A N/A endpoint /stats.json N/A N/A N/A self _get_json N/A url endpoint timeout N/A _get_master_roles N/A N/A self url timeout N/A N/A N/A N/A N/A self _get_json N/A url /roles.json timeout N/A _check_leadership N/A N/A self url timeout N/A N/A N/A state_metrics N/A N/A self _get_master_state url timeout N/A N/A self leader False N/A N/A state_metrics None N/A N/A N/A self version N/A map int N/A N/A N/A state_metrics N/A version split . N/A N/A N/A state_metrics N/A leader N/A state_metrics N/A pid N/A N/A N/A self leader True N/A state_metrics N/A check N/A N/A self instance N/A N/A N/A N/A url instance N/A N/A N/A Exception Mesos instance missing "url" value. N/A url N/A instance N/A url N/A instance_tags N/A N/A instance get tags N/A N/A default_timeout N/A N/A N/A self init_config get default_timeout 5 N/A timeout N/A float N/A N/A instance get timeout default_timeout N/A state_metrics N/A N/A self _check_leadership url timeout N/A state_metrics N/A N/A tags N/A N/A N/A mesos_pid:{0} format N/A state_metrics N/A pid mesos_node:master N/A N/A cluster state_metrics N/A N/A N/A N/A tags append N/A N/A mesos_cluster:{0} format N/A state_metrics N/A cluster N/A tags instance_tags N/A N/A self leader N/A N/A N/A N/A self GAUGE mesos.cluster.total_frameworks N/A len N/A state_metrics N/A frameworks tags tags N/A framework N/A state_metrics N/A frameworks N/A N/A framework_tags N/A N/A N/A framework_name: N/A framework N/A name tags N/A N/A N/A self GAUGE mesos.framework.total_tasks N/A len N/A framework N/A tasks tags framework_tags N/A resources N/A framework N/A used_resources N/A N/A key_name N/A metric_name metric_func N/A N/A N/A self FRAMEWORK_METRICS iteritems N/A N/A N/A metric_func self metric_name N/A resources N/A key_name tags framework_tags N/A role_metrics N/A N/A self _get_master_roles url timeout N/A N/A role_metrics None N/A N/A role N/A role_metrics N/A roles N/A N/A role_tags N/A N/A N/A mesos_role: N/A role N/A name tags N/A N/A N/A self GAUGE mesos.role.frameworks.count N/A len N/A role N/A frameworks tags role_tags N/A N/A N/A self GAUGE mesos.role.weight N/A role N/A weight tags role_tags N/A N/A key_name N/A metric_name metric_func N/A N/A N/A self ROLE_RESOURCES_METRICS iteritems N/A N/A N/A metric_func self metric_name N/A N/A role N/A resources N/A key_name tags role_tags N/A stats_metrics N/A N/A self _get_master_stats url timeout N/A N/A stats_metrics None N/A N/A metrics N/A N/A self SYSTEM_METRICS N/A N/A self leader N/A N/A metrics N/A N/A self CLUSTER_TASKS_METRICS N/A self CLUSTER_SLAVES_METRICS N/A self CLUSTER_RESOURCES_METRICS N/A self CLUSTER_REGISTRAR_METRICS N/A self CLUSTER_FRAMEWORK_METRICS N/A self STATS_METRICS N/A m metrics N/A N/A N/A key_name N/A metric_name metric_func N/A N/A m iteritems N/A N/A N/A metric_func self metric_name N/A stats_metrics N/A key_name tags tags N/A N/A self service_check_needed True N/A N/A