Skip to content

HDDS-7361. Add general metrics for queues in Datanode#3863

Merged
sodonnel merged 5 commits intoapache:masterfrom
symious:HDDS-7361
Oct 28, 2022
Merged

HDDS-7361. Add general metrics for queues in Datanode#3863
sodonnel merged 5 commits intoapache:masterfrom
symious:HDDS-7361

Conversation

@symious
Copy link
Contributor

@symious symious commented Oct 19, 2022

What changes were proposed in this pull request?

This ticket is to add a general metrics class for the following queues in Datanodes

  • StateContextCommandQueue
  • CommandDispatcherQueue
  • IncrementalReportQueue
  • ContainerActionQueue
  • PipelineActionQueue

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7361

How was this patch tested?

unit test.

@symious
Copy link
Contributor Author

symious commented Oct 19, 2022

@sodonnel Could you help to review this PR?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we should append count / size / total to the end of the metric name? Most counters seem to end in something like this.

@sodonnel
Copy link
Contributor

I think this change looks mostly good. I had just one comment about the metrics name.

Also, could you copy and paste an example of the metrics from a running docker-compose cluster and post in the PR so we can see what it is adding more easily?

@symious
Copy link
Contributor Author

symious commented Oct 26, 2022

@sodonnel Added "size" to metrics names, please have a look.
I'm not sure if we need to change the order of the metrics name or not.

Copy link
Contributor

@sodonnel sodonnel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking on the changes. LGTM!

@sodonnel sodonnel merged commit 7394f2c into apache:master Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments