diff --git a/collector/mssql.go b/collector/mssql.go index cccbc2b4..b5467029 100644 --- a/collector/mssql.go +++ b/collector/mssql.go @@ -360,7 +360,7 @@ type MSSQLCollector struct { SQLStatsUnsafeAutoParams *prometheus.Desc // Win32_PerfRawData_{instance}_SQLServerSQLErrors - SQLErrorsErrors *prometheus.Desc + SQLErrorsTotal *prometheus.Desc mssqlInstances mssqlInstancesType mssqlCollectors mssqlCollectorsMap @@ -1642,9 +1642,9 @@ func NewMSSQLCollector() (Collector, error) { ), // Win32_PerfRawData_{instance}_SQLServerSQLErrors - SQLErrorsErrors: prometheus.NewDesc( - prometheus.BuildFQName(Namespace, subsystem, "sqlerrors_errors"), - "(SQLErrors.Errors)", + SQLErrorsTotal: prometheus.NewDesc( + prometheus.BuildFQName(Namespace, subsystem, "sql_errors_total"), + "(SQLErrors.Total)", []string{"instance", "resource"}, nil, ), @@ -3592,7 +3592,7 @@ func (c *MSSQLCollector) collectSQLErrors(ch chan<- prometheus.Metric, sqlInstan resource := v.Name ch <- prometheus.MustNewConstMetric( - c.SQLErrorsErrors, + c.SQLErrorsTotal, prometheus.CounterValue, float64(v.Errorssec), sqlInstance, resource, diff --git a/docs/collector.mssql.md b/docs/collector.mssql.md index 7a78cd8a..76c7c1a1 100644 --- a/docs/collector.mssql.md +++ b/docs/collector.mssql.md @@ -230,7 +230,7 @@ Name | Description | Type | Labels `wmi_mssql_sqlstats_sql_compilations` | _Not yet documented_ | counter | `instance` `wmi_mssql_sqlstats_sql_recompilations` | _Not yet documented_ | counter | `instance` `wmi_mssql_sqlstats_unsafe_auto_parameterization_attempts` | _Not yet documented_ | counter | `instance` -`wmi_mssql_sqlerrors_errors` | _Not yet documented_ | counter | `instance`, `resource` +`wmi_mssql_sql_errors_total` | _Not yet documented_ | counter | `instance`, `resource` ### Example metric _This collector does not yet have explained examples, we would appreciate your help adding them!_