Change transaction_conflict_ratio to total
This commit is contained in:
parent
a283608812
commit
a90f9cda0f
|
@ -369,7 +369,7 @@ type MSSQLCollector struct {
|
||||||
TransactionsNonSnapshotVersionActiveTotal *prometheus.Desc
|
TransactionsNonSnapshotVersionActiveTotal *prometheus.Desc
|
||||||
TransactionsSnapshotActiveTotal *prometheus.Desc
|
TransactionsSnapshotActiveTotal *prometheus.Desc
|
||||||
TransactionsActiveTotal *prometheus.Desc
|
TransactionsActiveTotal *prometheus.Desc
|
||||||
TransactionsUpdateConflictRatio *prometheus.Desc
|
TransactionsUpdateConflictsTotal *prometheus.Desc
|
||||||
TransactionsUpdateSnapshotActiveTotal *prometheus.Desc
|
TransactionsUpdateSnapshotActiveTotal *prometheus.Desc
|
||||||
TransactionsVersionCleanupRateBytes *prometheus.Desc
|
TransactionsVersionCleanupRateBytes *prometheus.Desc
|
||||||
TransactionsVersionGenerationRateBytes *prometheus.Desc
|
TransactionsVersionGenerationRateBytes *prometheus.Desc
|
||||||
|
@ -1696,8 +1696,8 @@ func NewMSSQLCollector() (Collector, error) {
|
||||||
[]string{"instance"},
|
[]string{"instance"},
|
||||||
nil,
|
nil,
|
||||||
),
|
),
|
||||||
TransactionsUpdateConflictRatio: prometheus.NewDesc(
|
TransactionsUpdateConflictsTotal: prometheus.NewDesc(
|
||||||
prometheus.BuildFQName(Namespace, subsystem, "transactions_update_conflict_ratio"),
|
prometheus.BuildFQName(Namespace, subsystem, "transactions_update_conflicts_total"),
|
||||||
"(Transactions.UpdateConflictRatio)",
|
"(Transactions.UpdateConflictRatio)",
|
||||||
[]string{"instance"},
|
[]string{"instance"},
|
||||||
nil,
|
nil,
|
||||||
|
@ -3768,8 +3768,8 @@ func (c *MSSQLCollector) collectTransactions(ch chan<- prometheus.Metric, sqlIns
|
||||||
)
|
)
|
||||||
|
|
||||||
ch <- prometheus.MustNewConstMetric(
|
ch <- prometheus.MustNewConstMetric(
|
||||||
c.TransactionsUpdateConflictRatio,
|
c.TransactionsUpdateConflictsTotal,
|
||||||
prometheus.GaugeValue,
|
prometheus.CounterValue,
|
||||||
float64(v.Updateconflictratio),
|
float64(v.Updateconflictratio),
|
||||||
sqlInstance,
|
sqlInstance,
|
||||||
)
|
)
|
||||||
|
|
|
@ -236,7 +236,7 @@ Name | Description | Type | Labels
|
||||||
`wmi_mssql_transactions_nonsnapshot_version_active_total` | _Not yet documented_ | counter | `instance`
|
`wmi_mssql_transactions_nonsnapshot_version_active_total` | _Not yet documented_ | counter | `instance`
|
||||||
`wmi_mssql_transactions_snapshot_active_total` | _Not yet documented_ | counter | `instance`
|
`wmi_mssql_transactions_snapshot_active_total` | _Not yet documented_ | counter | `instance`
|
||||||
`wmi_mssql_transactions_active_total` | _Not yet documented_ | counter | `instance`
|
`wmi_mssql_transactions_active_total` | _Not yet documented_ | counter | `instance`
|
||||||
`wmi_mssql_transactions_update_conflict_ratio` | _Not yet documented_ | gauge | `instance`
|
`wmi_mssql_transactions_update_conflicts_total` | _Not yet documented_ | counter | `instance`
|
||||||
`wmi_mssql_transactions_update_snapshot_active_total` | _Not yet documented_ | counter | `instance`
|
`wmi_mssql_transactions_update_snapshot_active_total` | _Not yet documented_ | counter | `instance`
|
||||||
`wmi_mssql_transactions_version_cleanup_rate_bytes` | _Not yet documented_ | gauge | `instance`
|
`wmi_mssql_transactions_version_cleanup_rate_bytes` | _Not yet documented_ | gauge | `instance`
|
||||||
`wmi_mssql_transactions_version_generation_rate_bytes` | _Not yet documented_ | gauge | `instance`
|
`wmi_mssql_transactions_version_generation_rate_bytes` | _Not yet documented_ | gauge | `instance`
|
||||||
|
|
Loading…
Reference in New Issue