Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HH-142715 add Hibernate statistic metrics sender #343

Open
wants to merge 4 commits into
base: HH-142710
Choose a base branch
from

Conversation

pvorlov
Copy link
Collaborator

@pvorlov pvorlov commented Dec 29, 2021


var sender = new TaggedSender(statsDSender, Set.of(new Tag(Tag.APP_TAG_NAME, serviceName)));

statsDSender.sendPeriodically(() -> {
Copy link
Contributor

Choose a reason for hiding this comment

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

а можно настроить период?
какой по умолчанию?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Можно, есть перегруженный метод
https://github.com/hhru/nuts-and-bolts/blob/master/nab-metrics/src/main/java/ru/hh/nab/metrics/StatsDSender.java#L130
Но думаю, что не стоит для единообразия. В NaB'е везде используется неперегруженный вариант.
По умолчанию минута.

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.

3 participants