Module ImportFrom alias Import alias Import alias ImportFrom alias Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore Dict NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore ListLoad Str Str Str Str Str Str Str Str Assign NameStore ListLoad Str Str Str Str Str Assign NameStore BinOpAdd ListComp Dict NameLoad NameLoad BinOpMod Str NameLoad NameLoad comprehension NameStore NameLoad ListComp Dict NameLoad NameLoad BinOpMod Str NameLoad NameLoad comprehension NameStore NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str ListLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd NameLoad Call AttributeLoad NameLoad attr Str ListLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict attr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If CompareEq NameLoad NameLoad body Return Assign NameStore BinOpMod NameLoad Num Assign NameStore BinOpAdd BinOpMod BinOpAdd NameLoad Num Num Num If CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad orelse Assign NameStore BinOpAdd SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad ListLoad AugAssignAdd NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue If CompareNotIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Continue Assign NameStore CompareIsNot NameLoad NameLoad For TupleStore NameStore NameStore NameLoad body Assign NameStore Call AttributeLoad Str attr NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign NameStore BoolOpOr NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Continue If CompareGtE NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Return Expr Call SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad NameLoad NameLoad AugAssignAdd NameStore Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If CompareEq NameLoad ListLoad body Return ListLoad TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad Str attr ListLoad Str NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Return ListLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Slice Num BinOpAdd NameLoad ListLoad Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Expr Yield TupleLoad Call NameLoad NameLoad NameLoad orelse If Call NameLoad NameLoad NameLoad body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Expr Yield TupleLoad Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list decorator_list
N/A collections defaultdict N/A re N/A requests checks AgentCheck N/A DEFAULT_MAX_METRICS 350 N/A PATH path N/A ALIAS alias N/A TYPE type N/A TAGS tags N/A GAUGE gauge N/A RATE rate N/A DEFAULT_TYPE GAUGE N/A SUPPORTED_TYPES N/A GAUGE RATE N/A AgentCheck gauge N/A AgentCheck rate N/A METRIC_NAMESPACE go_expvar N/A DEFAULT_GAUGE_MEMSTAT_METRICS N/A Alloc TotalAlloc HeapAlloc HeapSys HeapIdle HeapInuse HeapReleased HeapObjects N/A DEFAULT_RATE_MEMSTAT_METRICS N/A Lookups Mallocs Frees PauseTotalNs NumGC N/A DEFAULT_METRICS N/A N/A N/A PATH TYPE N/A memstats/%s path GAUGE N/A path DEFAULT_GAUGE_MEMSTAT_METRICS N/A N/A PATH TYPE N/A memstats/%s path RATE N/A path DEFAULT_RATE_MEMSTAT_METRICS GoExpvar N/A AgentCheck N/A __init__ N/A N/A self name init_config agentConfig instances N/A None N/A N/A N/A N/A AgentCheck __init__ self name init_config agentConfig instances N/A N/A self _last_gc_count N/A defaultdict int N/A _get_data N/A N/A self url N/A N/A N/A r N/A N/A requests get url N/A N/A N/A r raise_for_status N/A N/A N/A r json N/A _load N/A N/A self instance N/A N/A N/A url N/A N/A instance get expvar_url N/A N/A url N/A N/A N/A Exception GoExpvar instance missing "expvar_url" value. N/A tags N/A N/A instance get tags N/A N/A N/A N/A tags append N/A expvar_url:%s url N/A data N/A N/A self _get_data url N/A metrics N/A DEFAULT_METRICS N/A N/A instance get metrics N/A N/A max_metrics N/A N/A instance get max_returned_metrics DEFAULT_MAX_METRICS N/A N/A data tags metrics max_metrics url N/A get_gc_collection_histogram N/A N/A self data tags url N/A N/A N/A num_gc N/A N/A N/A N/A data get memstats N/A get NumGC N/A pause_hist N/A N/A N/A N/A data get memstats N/A get PauseNs N/A last_gc_count N/A N/A self _last_gc_count N/A url N/A N/A last_gc_count num_gc N/A N/A N/A start N/A last_gc_count 256 N/A end N/A N/A N/A num_gc 255 256 1 N/A N/A start end N/A N/A values N/A pause_hist N/A start end N/A N/A values N/A N/A pause_hist N/A start N/A pause_hist N/A end N/A N/A N/A self _last_gc_count N/A url num_gc N/A value values N/A N/A N/A N/A self histogram N/A N/A self normalize memstats.PauseNs METRIC_NAMESPACE fix_case True value tags tags N/A check N/A N/A self instance N/A N/A N/A N/A data tags metrics max_metrics url N/A N/A self _load instance N/A N/A N/A self get_gc_collection_histogram data tags url N/A N/A N/A self parse_expvar_data data tags metrics max_metrics N/A parse_expvar_data N/A N/A self data tags metrics max_metrics N/A N/A N/A 
        Report all the metrics based on the configuration in instance
        If a metric is not well configured or is not present in the payload,
        continue processing metrics but log the information to the info page
         N/A count 0 N/A metric metrics N/A N/A path N/A N/A metric get PATH N/A metric_type N/A N/A metric get TYPE DEFAULT_TYPE N/A metric_tags N/A list N/A N/A metric get TAGS N/A N/A metric_tags tags N/A alias N/A N/A metric get ALIAS N/A N/A path N/A N/A N/A N/A self warning N/A Metric %s has no path metric N/A N/A N/A metric_type SUPPORTED_TYPES N/A N/A N/A N/A self warning N/A Metric type %s not supported for this check metric_type N/A N/A keys N/A N/A path split / N/A values N/A N/A self deep_get data keys N/A N/A N/A len values 0 N/A N/A N/A N/A self warning N/A No results matching path %s path N/A N/A tag_by_path N/A alias None N/A N/A traversed_path value values N/A N/A actual_path N/A N/A . join traversed_path N/A tag_by_path N/A N/A N/A N/A metric_tags append N/A path:%s actual_path N/A metric_name N/A alias N/A N/A self normalize actual_path METRIC_NAMESPACE fix_case True N/A N/A N/A N/A float value N/A N/A N/A ValueError N/A N/A N/A N/A N/A self log warning N/A Unreportable value for path %s: %s N/A path value N/A N/A N/A count max_metrics N/A N/A N/A N/A self warning Reporting more metrics than the allowed maximum. Please contact support@datadoghq.com for more information. N/A N/A N/A N/A SUPPORTED_TYPES N/A metric_type self metric_name value metric_tags N/A count 1 N/A deep_get N/A N/A self content keys traversed_path N/A None N/A N/A 
        Allow to retrieve content nested inside a several layers deep dict/list

        Examples: -content: {
                            "key1": {
                                "key2" : [
                                            {
                                                "name"  : "object1",
                                                "value" : 42
                                            },
                                            {
                                                "name"  : "object2",
                                                "value" : 72
                                            }
                                          ]
                            }
                        }
                  -keys: ["key1", "key2", "1", "value"] would return [(["key1", "key2", "1", "value"], 72)]
                  -keys: ["key1", "key2", "1", "*"] would return [(["key1", "key2", "1", "value"], 72), (["key1", "key2", "1", "name"], "object2")]
                  -keys: ["key1", "key2", "*", "value"] would return [(["key1", "key2", "1", "value"], 72), (["key1", "key2", "0", "value"], 42)]
         N/A N/A traversed_path None N/A N/A traversed_path N/A N/A N/A keys N/A N/A N/A N/A N/A traversed_path content N/A key N/A keys N/A 0 N/A regex N/A N/A join N/A ^ key $ N/A N/A N/A key_rex N/A N/A re compile regex N/A N/A N/A Exception N/A N/A N/A N/A self warning N/A Cannot compile regex: %s regex N/A N/A N/A results N/A N/A N/A new_key new_content N/A N/A self items content N/A N/A N/A N/A key_rex match new_key N/A N/A N/A N/A results extend N/A N/A self deep_get new_content N/A keys N/A 1 N/A traversed_path N/A N/A str new_key N/A results N/A items N/A N/A self object N/A N/A N/A N/A isinstance object list N/A N/A N/A new_key new_content N/A enumerate object N/A N/A N/A N/A N/A str new_key new_content N/A N/A N/A isinstance object dict N/A N/A N/A new_key new_content N/A N/A object iteritems N/A N/A N/A N/A N/A str new_key new_content N/A N/A N/A N/A N/A self log warning Could not parse this object, check the jsonserved by the expvar N/A N/A