Replies: 3 comments 8 replies
-
Hi @TomClqncy, let me have a look and come back to you soon. |
Beta Was this translation helpful? Give feedback.
3 replies
-
So this way? |
Beta Was this translation helpful? Give feedback.
5 replies
-
Hello @burningalchemist , sorry for following up lately. Still on the table. Update to come on Monday (LinkedIn message sent to you). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to add a custom metric in the config (Grafana agent yaml file) to collect db_size for the different databases.
Here is the query which works in the SQL console:
SELECT DB_NAME(6) AS [Database], CAST(size * 8. / 1024 / 1024 AS decimal(12,4)) AS FileSizeGB FROM sys.master_files
However, we got that error
level=error integration=mssql msg="Invalid metric description." err="[mssqlintegration,collector=mssql_standard,query=mssql_db_size] Missing values for the requested columns: [\"DB_NAME\" \"Size of Databases\"]"
Then, I tried to change the query to :
SELECT DB_NAME(6) AS [Database], CAST(size * 8. / 1024 / 1024 AS decimal(12,4)) AS FileSizeGB GROUP BY DB_NAME
And I got that error now :
level=error integration=mssql msg="Invalid metric description." err="[mssqlintegration,collector=mssql_standard,query=mssql_db_size] mssql: Invalid column name 'size'."
It would be great to get some help on how to write the query to get the db_size correctly. Thx a lot for support
Beta Was this translation helpful? Give feedback.
All reactions