@@ -50,6 +50,10 @@ func TestScrapeGlobalStatus(t *testing.T) {
50
50
AddRow ("Innodb_buffer_pool_pages_made_young" , "15" ).
51
51
AddRow ("Innodb_rows_read" , "8" ).
52
52
AddRow ("Performance_schema_users_lost" , "9" ).
53
+ AddRow ("Threads_cached" , "7" ).
54
+ AddRow ("Threads_connected" , "18" ).
55
+ AddRow ("Threads_created" , "25" ).
56
+ AddRow ("Threads_running" , "1" ).
53
57
AddRow ("Slave_running" , "OFF" ).
54
58
AddRow ("Ssl_version" , "" ).
55
59
AddRow ("Uptime" , "10" ).
@@ -87,6 +91,10 @@ func TestScrapeGlobalStatus(t *testing.T) {
87
91
{labels : labelMap {"operation" : "made_young" }, value : 15 , metricType : dto .MetricType_COUNTER },
88
92
{labels : labelMap {"operation" : "read" }, value : 8 , metricType : dto .MetricType_COUNTER },
89
93
{labels : labelMap {"instrumentation" : "users_lost" }, value : 9 , metricType : dto .MetricType_COUNTER },
94
+ {labels : labelMap {"state" : "cached" }, value : 7 , metricType : dto .MetricType_GAUGE },
95
+ {labels : labelMap {"state" : "connected" }, value : 18 , metricType : dto .MetricType_GAUGE },
96
+ {labels : labelMap {"state" : "created" }, value : 25 , metricType : dto .MetricType_GAUGE },
97
+ {labels : labelMap {"state" : "running" }, value : 1 , metricType : dto .MetricType_GAUGE },
90
98
{labels : labelMap {}, value : 0 , metricType : dto .MetricType_UNTYPED },
91
99
{labels : labelMap {}, value : 10 , metricType : dto .MetricType_UNTYPED },
92
100
{labels : labelMap {}, value : 11 , metricType : dto .MetricType_UNTYPED },
0 commit comments