#NEWLINE# def test_fluentd_with_tag_by_type( self ) : #NEWLINE# #INDENT# config = { #NEWLINE# #INDENT# 'init_config' : { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , #NEWLINE# 'instances' : [ { #NEWLINE# #INDENT# 'monitor_agent_url' : 'http://localhost:24220/api/plugins.json' , #NEWLINE# 'tag_by' : 'type' , #NEWLINE# #UNINDENT# } ] , #NEWLINE# #UNINDENT# } #NEWLINE# self . run_check ( config ) #NEWLINE# for m in self . CHECK_GAUGES : #NEWLINE# #INDENT# self . assertMetric ( '{0}.{1}' . format ( self . CHECK_NAME , m ) ) #NEWLINE# self . assertMetricTagPrefix ( '{0}.{1}' . format ( self . CHECK_NAME , m ) , 'type' ) #NEWLINE# #UNINDENT# self . assertServiceCheckOK ( self . check . SERVICE_CHECK_NAME , tags = [ 'fluentd_host:localhost' , 'fluentd_port:24220' ] ) #NEWLINE# self . coverage_report ( )