-
Notifications
You must be signed in to change notification settings - Fork 1
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
perf: remove extra metrics #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any downside to keeping the URL? It might be useful if we're replacing a node but want to keep the same ID. No strong opinions.
Are there any concerns with using count on the duration metric? A theoretical concern: datadog or the client could sample data points for distribution-type metrics under the hood. Although it's a bit redundant, it might be more readable / clear to have separate metrics for count and duration. I'm not concerned about the minor redundancy.
The motivation behind this was costs. About the replacements - that shouldn't be a very common event. I was warned by @kevin-satsuma that DD custom metrics are expensive. On the sampling - I haven't seen any docs that indicate sampling happens. I graphed a few duration.count and requests.count and they were the same. I can move it add it back now and remove it if we need to cut costs later. |
8a8ec13
to
2937eda
Compare
Gotcha. I think they charge by existence of combination of tags, so if we have a 1:1 mapping of URL to ID, then it's the same cardinality / cost as having only ID. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No strong opinion on the URL. Up to you!
Oh good point on the unique combinations https://docs.datadoghq.com/account_management/billing/custom_metrics/?tab=countrate
|
9e9abbe
to
e0ee1f7
Compare
* feat: metrics on health checks
e0ee1f7
to
53d597c
Compare
Description
upstream_id
is descriptive enoughtotal
metrics - we can useduration.count
insteadendpoint_id
toupstream_id
for consistencyType of change
How Has This Been Tested?
Ran it and seeing metrics in data dog