Skip to main content
Solved

SQL query to get the SLA%


KrisVermeulen
Byte
Forum|alt.badge.img+1

Hi,

i have a Grafana monitoring setup i would like to expand with some Commvault stats.

https://grafana.com/docs/grafana/latest/datasources/mssql/

It’s possible to query SQL databases, like the Commvault DB.

Which query should i use to become the SLA % you see in the dashboard of the Commandcenter?

Best answer by Scott Moseman

@KrisVermeulen,

Is Grafana able to pull the data and do some math on the results?

USE CommServ
SELECT * FROM [dbo].[RptSLAHistory]
WHERE days=-1 AND FullJobsOnly=0 ORDER BY date DESC

SLA % = nClientsMet / (nClientsMet + nClientsMissed) * 100
 


Thanks,
Scott
 

View original
Did this answer your question?

4 replies

Forum|alt.badge.img+15
  • Vaulter
  • 630 replies
  • April 10, 2023

Good afternoon.  There are a number of considerations that go into the SLA percentages, things included, excluded, etc.   I will reach out to my resources and see if it is possible to pull that information from the CommServe database and update this thread once i have a response.


Scott Moseman
Vaulter
Forum|alt.badge.img+18

@KrisVermeulen,

Is Grafana able to pull the data and do some math on the results?

USE CommServ
SELECT * FROM [dbo].[RptSLAHistory]
WHERE days=-1 AND FullJobsOnly=0 ORDER BY date DESC

SLA % = nClientsMet / (nClientsMet + nClientsMissed) * 100
 


Thanks,
Scott
 


Forum|alt.badge.img+15
  • Vaulter
  • 630 replies
  • April 18, 2023

@Scott Moseman  Thanks for bailing me out on this one 😀


Scott Moseman
Vaulter
Forum|alt.badge.img+18

I had this exact request in my notes for my one my customers. 😎

Thanks,
Scott


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings