Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str TupleLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str TupleLoad Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Str Dict Str ListLoad Str Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str TupleLoad Str Num TupleLoad Str Num TupleLoad Str Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Call NameLoad keyword Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Call NameLoad keyword Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr Num Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Call NameLoad keyword Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str Str Str Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Call NameLoad keyword Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Dict decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad Str Dict Str ListLoad Str Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Call NameLoad keyword Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Num Num Num Num Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad Str Call NameLoad keyword Lambda arguments args defaults vararg Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Num Assign NameStore Dict Str Str Str Str Str Str Num Num Num Num Num Num Expr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list Call AttributeLoad NameLoad attr NameLoad Str decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A test CollectorTestCase test get_collector_config test unittest mock Mock mock patch diamond.collector Collector elasticsearch ElasticSearchCollector TestElasticSearchCollector N/A CollectorTestCase N/A setUp N/A N/A self N/A N/A N/A config N/A get_collector_config ElasticSearchCollector N/A N/A N/A self collector N/A ElasticSearchCollector config None N/A test_import N/A N/A self N/A N/A N/A N/A N/A self assertTrue ElasticSearchCollector N/A test_new__instances_default N/A N/A self N/A N/A N/A config N/A get_collector_config ElasticSearchCollector N/A N/A N/A self collector N/A ElasticSearchCollector config None N/A N/A N/A self assertEqual N/A N/A self collector instances N/A N/A 127.0.0.1 9200 N/A test_new__instances_single N/A N/A self N/A N/A N/A config N/A get_collector_config ElasticSearchCollector N/A instances bla N/A N/A self collector N/A ElasticSearchCollector config None N/A N/A N/A self assertEqual N/A N/A self collector instances N/A default N/A bla 9200 N/A test_new__instances_multi N/A N/A self N/A N/A N/A config N/A get_collector_config ElasticSearchCollector N/A instances N/A something foo@1234 bar@bla:1234 N/A N/A self collector N/A ElasticSearchCollector config None N/A N/A N/A self assertEqual N/A N/A self collector instances N/A default foo bar N/A something 9200 N/A 1234 9200 N/A bla 1234 N/A test_should_work_with_real_data N/A N/A self publish_mock N/A N/A N/A returns N/A N/A N/A self getFixture stats N/A N/A self getFixture cluster_stats N/A N/A self getFixture indices_stats N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock side_effect N/A N/A N/A N/A args N/A N/A returns pop 0 N/A N/A N/A N/A self collector config N/A cluster True N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertEqual N/A N/A urlopen_mock new call_count 3 N/A metrics N/A http.current indices.docs.count indices.docs.deleted indices.datastore.size indices._all.docs.count indices._all.docs.deleted indices._all.datastore.size indices.test.docs.count indices.test.docs.deleted indices.test.datastore.size process.cpu.percent process.mem.resident process.mem.share process.mem.virtual disk.reads.count disk.reads.size disk.writes.count disk.writes.size thread_pool.generic.threads network.tcp.active_opens jvm.mem.pools.CMS_Old_Gen.used cluster_health.nodes.total cluster_health.nodes.data cluster_health.shards.active_primary cluster_health.shards.active cluster_health.shards.relocating cluster_health.shards.unassigned cluster_health.shards.initializing cluster_health.status 1 11968062 2692068 22724243633 4 0 2674 4 0 2674 58 5192126464 11075584 7109668864 55996 1235387392 5808198 23287275520 1 2299 530915016 3 3 5 10 0 0 0 2 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_work_with_real_data_logstash_mode N/A N/A self publish_mock N/A N/A N/A returns N/A N/A N/A self getFixture stats N/A N/A self getFixture logstash_indices_stats N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock side_effect N/A N/A N/A N/A args N/A N/A returns pop 0 N/A N/A N/A N/A self collector config N/A logstash_mode True N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertEqual N/A N/A urlopen_mock new call_count 2 N/A metrics N/A indices.docs.count indices.docs.deleted indices.datastore.size indices._all.docs.count indices._all.docs.deleted indices._all.datastore.size indices._all.get.exists_time_in_millis indices._all.get.exists_total indices._all.get.missing_time_in_millis indices._all.get.missing_total indices._all.get.time_in_millis indices._all.get.total indices._all.indexing.delete_time_in_millis indices._all.indexing.delete_total indices._all.indexing.index_time_in_millis indices._all.indexing.index_total indices._all.search.fetch_time_in_millis indices._all.search.fetch_total indices._all.search.query_time_in_millis indices._all.search.query_total indices._all.store.throttle_time_in_millis indices.logstash-adm-syslog.indexes_in_group indices.logstash-adm-syslog.datastore.size indices.logstash-adm-syslog.docs.count indices.logstash-adm-syslog.docs.deleted indices.logstash-adm-syslog.get.exists_time_in_millis indices.logstash-adm-syslog.get.exists_total indices.logstash-adm-syslog.get.missing_time_in_millis indices.logstash-adm-syslog.get.missing_total indices.logstash-adm-syslog.get.time_in_millis indices.logstash-adm-syslog.get.total indices.logstash-adm-syslog.indexing.delete_time_in_millis indices.logstash-adm-syslog.indexing.delete_total indices.logstash-adm-syslog.indexing.index_time_in_millis indices.logstash-adm-syslog.indexing.index_total indices.logstash-adm-syslog.search.fetch_time_in_millis indices.logstash-adm-syslog.search.fetch_total indices.logstash-adm-syslog.search.query_time_in_millis indices.logstash-adm-syslog.search.query_total indices.logstash-adm-syslog.store.throttle_time_in_millis 11968062 2692068 22724243633 35856619 0 21903813340 0 0 0 0 0 0 0 0 29251475 35189321 6962 4084 41211 4266 0 3 21903813340 35856619 0 0 0 0 0 0 0 0 0 29251475 35189321 6962 4084 41211 4266 0 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_work_with_real_0_90_data N/A N/A self publish_mock N/A N/A N/A returns N/A N/A N/A self getFixture stats0.90 N/A N/A self getFixture indices_stats N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock side_effect N/A N/A N/A N/A args N/A N/A returns pop 0 N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertEqual N/A N/A urlopen_mock new call_count 2 N/A metrics N/A cache.filter.size cache.filter.evictions cache.id.size fielddata.size fielddata.evictions 1700 9 98 1448 12 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_fail_gracefully N/A N/A self publish_mock N/A N/A N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock return_value N/A N/A self getFixture stats_blank N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertPublishedMany publish_mock N/A N/A N/A N/A patch object Collector publish test_multi_instances_with_real_data N/A N/A self publish_mock N/A N/A N/A config N/A get_collector_config ElasticSearchCollector N/A instances N/A esprodata01@10.10.10.201:9200 esprodata02@10.10.10.202:9200 N/A N/A self collector N/A ElasticSearchCollector config None N/A N/A N/A self assertEqual N/A len N/A N/A self collector instances 2 N/A returns N/A N/A N/A self getFixture stats N/A N/A self getFixture indices_stats N/A N/A self getFixture stats2 N/A N/A self getFixture indices_stats2 N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock side_effect N/A N/A N/A N/A args N/A N/A returns pop 0 N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertEqual N/A N/A urlopen_mock new call_count 4 N/A metrics N/A esprodata01.http.current esprodata02.http.current esprodata01.indices.docs.count esprodata02.indices.docs.count esprodata01.thread_pool.generic.threads esprodata02.thread_pool.generic.threads esprodata01.jvm.mem.pools.Par_Survivor_Space.max esprodata02.jvm.mem.pools.Par_Survivor_Space.max esprodata01.indices._all.docs.count esprodata02.indices._all.docs.count 1 2 11968062 11968000 1 2 8716288 8710000 4 8 N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish test_should_work_with_real_1_7_data N/A N/A self publish_mock N/A N/A N/A returns N/A N/A N/A self getFixture stats1.7 N/A N/A self getFixture indices_stats N/A urlopen_mock N/A patch urllib2.urlopen N/A Mock side_effect N/A N/A N/A N/A args N/A N/A returns pop 0 N/A N/A N/A urlopen_mock start N/A N/A N/A N/A self collector collect N/A N/A N/A urlopen_mock stop N/A N/A N/A self assertEqual N/A N/A urlopen_mock new call_count 2 N/A metrics N/A segments.count segments.mem.size segments.index_writer.mem.size segments.index_writer.mem.max_size segments.version_map.mem.size segments.fixed_bit_set.mem.size 7 75726 0 469762048 0 0 N/A N/A N/A self setDocExample collector N/A N/A N/A self collector __class__ __name__ metrics metrics defaultpath N/A N/A N/A self collector config N/A path N/A N/A N/A self assertPublishedMany publish_mock metrics N/A N/A N/A patch object Collector publish N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main