Skip to content

Commit

Permalink
pgwire: avoid mentioning "tenants" in pre-serve metric names
Browse files Browse the repository at this point in the history
Release note: None
  • Loading branch information
knz committed Aug 19, 2023
1 parent a4a7758 commit 045ec15
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions pkg/sql/pgwire/pre_serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,37 +39,37 @@ import (
var (
MetaPreServeNewConns = metric.Metadata{
Name: "sql.pre_serve.new_conns",
Help: "Counter of the number of SQL connections created prior to routine the connection a specific tenant",
Help: "Counter of the number of SQL connections created prior to routing the connection to the target SQL server",
Measurement: "Connections",
Unit: metric.Unit_COUNT,
}
MetaPreServeBytesIn = metric.Metadata{
Name: "sql.pre_serve.bytesin",
Help: "Number of SQL bytes received prior to routing the connection to a specific tenant",
Help: "Number of SQL bytes received prior to routing the connectionto the target SQL server",
Measurement: "SQL Bytes",
Unit: metric.Unit_BYTES,
}
MetaPreServeBytesOut = metric.Metadata{
Name: "sql.pre_serve.bytesout",
Help: "Number of SQL bytes sent prior to routing the connection to a specific tenant",
Help: "Number of SQL bytes sent prior to routing the connectionto the target SQL server",
Measurement: "SQL Bytes",
Unit: metric.Unit_BYTES,
}
MetaPreServeConnFailures = metric.Metadata{
Name: "sql.pre_serve.conn.failures",
Help: "Number of SQL connection failures prior to routing the connection to a specific tenant",
Help: "Number of SQL connection failures prior to routing the connectionto the target SQL server",
Measurement: "Connections",
Unit: metric.Unit_COUNT,
}
MetaPreServeMaxBytes = metric.Metadata{
Name: "sql.pre_serve.mem.max",
Help: "Memory usage for SQL connections prior to routing the connection to a specific tenant",
Help: "Memory usage for SQL connections prior to routing the connectionto the target SQL server",
Measurement: "Memory",
Unit: metric.Unit_BYTES,
}
MetaPreServeCurBytes = metric.Metadata{
Name: "sql.pre_serve.mem.cur",
Help: "Current memory usage for SQL connections prior to routing the connection to a specific tenant",
Help: "Current memory usage for SQL connections prior to routing the connectionto the target SQL server",
Measurement: "Memory",
Unit: metric.Unit_BYTES,
}
Expand Down

0 comments on commit 045ec15

Please sign in to comment.