You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Alexey Serbin (Code Review)" <ge...@cloudera.org> on 2026/03/18 23:47:40 UTC

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Alexey Serbin has uploaded this change for review. ( http://gerrit.cloudera.org:8080/24115


Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................

[server] use the 'counter' type for the 'uptime' metric

This patch changes the type of the 'counter' metric from 'gauge'
'counter': the metric's value monotonically increases by definition.

I didn't add any automated tests to cover this update, but I manually
verified that the 'uptime' metric is now listed as a metric of the
'counter' type when fetching data from master's and tserver's
"/metrics_prometheus" HTTP endpoint.

Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
---
M src/kudu/server/server_base.cc
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/15/24115/1
-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1:

Build Started http://jenkins.kudu.apache.org/job/pre_commit/2399/


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 16:02:14 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has removed a vote on this change.

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Removed Verified-1 by Kudu Jenkins (120)
-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1:

Build Started http://jenkins.kudu.apache.org/job/pre_commit/2386/


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 18 Mar 2026 23:47:50 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1: Verified-1

Build Failed 

http://jenkins.kudu.apache.org/job/pre_commit/2399/ : FAILURE


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 18:07:42 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1: Verified+1

Unrelated failures of known flaky tests:
  ASAN: ReplaceTabletITest.ReplaceTabletsWhileWriting  (KUDU-3613)
  TSAN: org.apache.kudu.spark.kudu.DefaultSourceTest


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 19:49:14 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Abhishek Chennaka (Code Review)" <ge...@cloudera.org>.
Abhishek Chennaka has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1: Code-Review+2


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 23:30:25 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................

[server] use the 'counter' type for the 'uptime' metric

This patch changes the type of the 'counter' metric from 'gauge'
'counter': the metric's value monotonically increases by definition.

I didn't add any automated tests to cover this update, but I manually
verified that the 'uptime' metric is now listed as a metric of the
'counter' type when fetching data from master's and tserver's
"/metrics_prometheus" HTTP endpoint.

Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Reviewed-on: http://gerrit.cloudera.org:8080/24115
Tested-by: Alexey Serbin <al...@apache.org>
Reviewed-by: Abhishek Chennaka <ac...@cloudera.com>
---
M src/kudu/server/server_base.cc
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Alexey Serbin: Verified
  Abhishek Chennaka: Looks good to me, approved

-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 2
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1: Verified-1

Build Failed 

http://jenkins.kudu.apache.org/job/pre_commit/2386/ : FAILURE


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 00:10:41 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1: -Verified

Build Started http://jenkins.kudu.apache.org/job/pre_commit/2393/


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 10:50:50 +0000
Gerrit-HasComments: No

[kudu-CR] [server] use the 'counter' type for the 'uptime' metric

Posted by "Kudu Jenkins (Code Review)" <ge...@cloudera.org>.
Kudu Jenkins has posted comments on this change. ( http://gerrit.cloudera.org:8080/24115 )

Change subject: [server] use the 'counter' type for the 'uptime' metric
......................................................................


Patch Set 1:

Build Aborted 

http://jenkins.kudu.apache.org/job/pre_commit/2393/ : ABORTED


-- 
To view, visit http://gerrit.cloudera.org:8080/24115
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I00ef652ff5b38c600593b7fab7664d8e990f8669
Gerrit-Change-Number: 24115
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Abhishek Chennaka <ac...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 12:56:29 +0000
Gerrit-HasComments: No