Skip to content

feat/metrics example #11

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

Merged
merged 5 commits into from
Jan 12, 2023
Merged

feat/metrics example #11

merged 5 commits into from
Jan 12, 2023

Conversation

cboudereau
Copy link
Owner

@cboudereau cboudereau commented Jan 12, 2023

Add an example to support metrics/timers in stored procedure / sql in sybase

  • use sp_sendmsg to send udp pakets
  • create a script sample to find the best trafeoffs and alternative to a common stopwatch
  • integrate metrics in prometheus with statsd-exporter adapter

Stopwatch tradeoff

Measuring delay with 2 dates is not recommended but to measure high latencies (> 1s since the precision is up to 1/300 second according to sybase documentation) without true stopwatch/timestamp, it is ok.

@cboudereau cboudereau marked this pull request as draft January 12, 2023 11:39
@cboudereau cboudereau marked this pull request as ready for review January 12, 2023 12:10
@cboudereau cboudereau merged commit f00f458 into main Jan 12, 2023
@cboudereau cboudereau deleted the feat/metrics branch January 12, 2023 12:11
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.

1 participant