Errors counter renamed

This commit is contained in:
Поляков Игорь 2019-08-03 20:24:02 +03:00
parent 6322bb124f
commit 37d1c4e958
2 changed files with 6 additions and 6 deletions

View File

@ -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,

View File

@ -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!_