Skip to content

Commit

Permalink
Merge pull request #747 from LiZhenCheng9527/change-metric-name
Browse files Browse the repository at this point in the history
match the meaning of Kmesh L4 metric with istio
  • Loading branch information
kmesh-bot authored Aug 20, 2024
2 parents 94828ea + e686456 commit 4a6e911
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pkg/controller/telemetry/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,60 +117,60 @@ var (

var (
tcpConnectionOpenedInWorkload = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "kmesh_tcp_connections_opened_total",
Name: "kmesh_tcp_workload_connections_opened_total",
Help: "The total number of TCP connections opened to a workload",
}, workloadLabels)

tcpConnectionClosedInWorkload = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_connections_closed_total",
Name: "kmesh_tcp_workload_connections_closed_total",
Help: "The total number of TCP connections closed to a workload",
}, workloadLabels)

tcpReceivedBytesInWorkload = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_received_bytes_total",
Name: "kmesh_tcp_workload_received_bytes_total",
Help: "The size of the total number of bytes received in response to a workload over a TCP connection.",
}, workloadLabels)

tcpSentBytesInWorkload = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_sent_bytes_total",
Name: "kmesh_tcp_workload_sent_bytes_total",
Help: "The size of the total number of bytes sent in response to a workload over a TCP connection.",
}, workloadLabels)

tcpConnectionFailedInWorkload = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_conntections_failed_total",
Name: "kmesh_tcp_workload_conntections_failed_total",
Help: "The total number of TCP connections failed to a workload.",
}, workloadLabels)

tcpConnectionOpenedInService = prometheus.NewGaugeVec(prometheus.GaugeOpts{
Name: "kmesh_tcp_service_connections_opened_total",
Name: "kmesh_tcp_connections_opened_total",
Help: "The total number of TCP connections opened to a service",
}, serviceLabels)

tcpConnectionClosedInService = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_service_connections_closed_total",
Name: "kmesh_tcp_connections_closed_total",
Help: "The total number of TCP connections closed to a service",
}, serviceLabels)

tcpReceivedBytesInService = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_service_received_bytes_total",
Name: "kmesh_tcp_received_bytes_total",
Help: "The size of the total number of bytes reveiced in response to a service over a TCP connection.",
}, serviceLabels)

tcpSentBytesInService = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_service_sent_bytes_total",
Name: "kmesh_tcp_sent_bytes_total",
Help: "The size of the total number of bytes sent in response to a service over a TCP connection.",
}, serviceLabels)

tcpConnectionFailedInService = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
Name: "kmesh_tcp_service_conntections_failed_total",
Name: "kmesh_tcp_conntections_failed_total",
Help: "The total number of TCP connections failed to a service.",
}, serviceLabels)
)
Expand Down

0 comments on commit 4a6e911

Please sign in to comment.