Closed YuriiBudnyi closed 2 months ago
This is most likely because your test_test
label does not actually exist in the columns (result of the query) and therefore gets added with an empty value. Try removing that label from the configuration or use a column name that exists.
Hello @marevers,
I'm sorry for not getting back to you sooner. Yes, it helped.
Thank you)
Issue: Duplicate Metrics Collection for MSSQL with sql_exporter
Hi Team,
Thank you for your continuous efforts on improving sql_exporter.
I have encountered an issue when using sql_exporter with an MSSQL server. The application returns the following error related to duplicate collection of metrics:
Logs from sql_exporter:
Configuration
Here is my
config.yml
:Issue Description
The error suggests that the metrics "sql_mssql_connections" and "sql_mssql_log_growths" are being collected with identical name and label values more than once. This could be due to how the query results are processed and labeled.
Request for Assistance
Could you please help me resolve this issue? I would appreciate any guidance on how to modify the configuration or the queries to prevent the duplication of metrics.
Thank you in advance for your help.
Best regards, Yurii