I'm trying to troubleshoot strange behavior I observe with Prometheus so not filing it as a graph.
# TYPE mysql_perf_schema_index_io_waits_seconds_total counter
mysql_perf_schema_index_io_waits_seconds_total{index="NONE",name="sbtest1",operation="delete",schema="sbinnodb"} 0
mysql_perf_schema_index_io_waits_seconds_total{index="NONE",name="sbtest1",operation="fetch",schema="sbinnodb"} 0
mysql_perf_schema_index_io_waits_seconds_total{index="NONE",name="sbtest1",operation="insert",schema="sbinnodb"} 760445.7222570692
mysql_perf_schema_index_io_waits_seconds_total{index="NONE",name="sbtest1",operation="update",schema="sbinnodb"} 0
mysql_perf_schema_index_io_waits_seconds_total{index="PRIMARY",name="sbtest1",operation="fetch",schema="sbinnodb"} 1.6027155371667786e+07
mysql_perf_schema_index_io_waits_seconds_total{index="PRIMARY",name="sys_config",operation="fetch",schema="sys"} 0.000815564068
mysql_perf_schema_index_io_waits_seconds_total{index="PRIMARY",name="testcomp",operation="fetch",schema="sbinnodb"} 0
mysql_perf_schema_index_io_waits_seconds_total{index="k_1",name="sbtest1",operation="fetch",schema="sbinnodb"} 12936.988598126449
mysql_perf_schema_index_io_waits_seconds_total{index="k_1",name="testcomp",operation="fetch",schema="sbinnodb"} 0
Note there is only one line for sbtest1 PRIMARY KEY
However looking directly in Performance Schema I see:
mysql> select * from table_io_waits_summary_by_index_usage where object_name='sbtest1' and index_name='PRIMARY' \G
*************************** 1. row ***************************
OBJECT_TYPE: TABLE
OBJECT_SCHEMA: sbinnodb
OBJECT_NAME: sbtest1
INDEX_NAME: PRIMARY
COUNT_STAR: 143675382835
SUM_TIMER_WAIT: 2840779546248094781
MIN_TIMER_WAIT: 1014120
AVG_TIMER_WAIT: 148163871
MAX_TIMER_WAIT: 1523073058466621
COUNT_READ: 142095737997
SUM_TIMER_READ: 16033309495643226090
MIN_TIMER_READ: 1014120
AVG_TIMER_READ: 112834309
MAX_TIMER_READ: 1523073058466621
COUNT_WRITE: 1579644838
SUM_TIMER_WRITE: 5254214124314420307
MIN_TIMER_WRITE: 3255826
MAX_TIMER_WRITE: 13818723500054
COUNT_FETCH: 142095737997
SUM_TIMER_FETCH: 16033309495643226090
MIN_TIMER_FETCH: 1014120
AVG_TIMER_FETCH: 112834309
MAX_TIMER_FETCH: 1523073058466621
COUNT_INSERT: 0
SUM_TIMER_INSERT: 0
MIN_TIMER_INSERT: 0
AVG_TIMER_INSERT: 0
MAX_TIMER_INSERT: 0
COUNT_UPDATE: 1255306932
SUM_TIMER_UPDATE: 4386448736948725540
MIN_TIMER_UPDATE: 3255826
AVG_TIMER_UPDATE: 3494323549
MAX_TIMER_UPDATE: 13818723500054
COUNT_DELETE: 324337906
SUM_TIMER_DELETE: 867765387365694767
MIN_TIMER_DELETE: 7581799
MAX_TIMER_DELETE: 3019949592189
1 row in set (0.00 sec)
any idea what could be the issue ?
--