From 37d1c4e958d3a0c65f4f69b1f97c868e1ae5147d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D1=8F=D0=BA=D0=BE=D0=B2=20=D0=98=D0=B3?= =?UTF-8?q?=D0=BE=D1=80=D1=8C?= Date: Sat, 3 Aug 2019 20:24:02 +0300 Subject: [PATCH] Errors counter renamed --- collector/mssql.go | 10 +++++----- docs/collector.mssql.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) 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!_