You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my SQL table, I am having 10 million rows. all other metrics I am getting except this one. previously I have checked with fewer rows that time query returned the correct values.
Below attaching my timeout config lines of both YML files and the error and the query I used for getting the table size.
Prometheus.yml fine: # my global config global: scrape_interval: 2m # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 2m # Evaluate rules every 15 seconds. The default is every 1 minute. scrape_timeout: 10s
In my SQL table, I am having 10 million rows. all other metrics I am getting except this one. previously I have checked with fewer rows that time query returned the correct values.
Below attaching my timeout config lines of both YML files and the error and the query I used for getting the table size.
Error:
6808 promhttp.go:38] Error gathering metrics: [from Gatherer #1] [, collector="mssql_standard", query="mssql_table_size"] context deadline exceeded
Prometheus.yml fine:
# my global config global: scrape_interval: 2m # Set the scrape interval to every 15 seconds. Default is every 1 minute. evaluation_interval: 2m # Evaluate rules every 15 seconds. The default is every 1 minute. scrape_timeout: 10s
SQL exporter yml file:
global: scrape_timeout_offset: 500ms min_interval: 0s max_connections: 3 max_idle_connections: 3
Query i have used for SQL table used, unused, total spaces:
`IF OBJECT_ID('tempdb.dbo.#space') IS NOT NULL
DROP TABLE #space
The text was updated successfully, but these errors were encountered: