The error is very clear: you are generating multiple metrics with the same label name and exact set of labels. Therefore, you will need to add extra labels to your metrics to make them unique.
The first error, for example, shows that you have generated this metric twice:
mysql_info_schema_auto_increment_column{column="id" schema="product_catalog" table="service_area_matrix_gvpn"} XXX
mysql_info_schema_auto_increment_column{column="id" schema="product_catalog" table="service_area_matrix_gvpn"} 1
Therefore there's something wrong in your configuration, either of mysqld_exporter itself or the prometheus scrape job.
- job_name: mysql # To get metrics about the mysql exporter’s targets
params:
# Not required. Will match value to child in config file. Default value is `client`.
auth_module: client.servers
static_configs:
- targets:
# All mysql hostnames to monitor.
- server1:3306
- server2:3306
relabel_configs:
- source_labels: [__address__]
target_label: __param_target
- source_labels: [__param_target]
target_label: instance
- target_label: __address__
# The mysqld_exporter host:port
replacement: localhost:9104
If you haven't set the 'instance' label (see the highlighted lines) then you'll get this problem, because both metrics will have instance="localhost:9104"