Comments (6)
@tianchu Thank you for response!
I thought that unique combinations of tags billing works a little bit different. Now I agree, that from biling perspective, there is no point in disabling this.
But still it adds some unneeded noise to all of the metrics.
Maybe let's keep this issue as open and if somebody else find it as a problem, then we can get back to it? 😄
from datadog-lambda-js.
Hi @PatrykMilewski, thanks for filing an issue.
The custom metrics you submit with the Datadog Lambda Layer / package are Distribution metrics. These are unique in that you control which aggregations and percentiles you want. To disable a tag like dd_lambda_layer
, you can navigate to Metrics > Distribution Metrics > your.custom.metric
and change the aggregations there.
Docs: https://docs.datadoghq.com/metrics/distributions/#customize-tagging
from datadog-lambda-js.
Thank you @pinkerton, it worked!
from datadog-lambda-js.
@pinkerton I think I have to reopen this issue. The workaround that you proposed works, but if I publish tens of metrics, then I have to click through them and for each of them disable dd_lambda_layer
tag, which is time consuming and annoying.
My point is, that it could be avoided, since for my use case this tag is really not important and could be disabled, since I'm not getting any value of having it in my DataDog.
I did look into the code and it's only about possibility to force getRuntimeTag()
to return nothing by some flag that can be provided with configuration.
export function sendDistributionMetric(name: string, value: number, ...tags: string[]) {
tags = [...tags, getRuntimeTag()];
if (currentMetricsListener !== undefined) {
currentMetricsListener.sendDistributionMetric(name, value, ...tags);
} else {
logError("handler not initialized");
}
}
from datadog-lambda-js.
@PatrykMilewski I agree this request makes sense, as that tag was added mostly for tracking/debugging, we are working on a better solution and we can get rid of this tag in a future release.
However, to clarify, unless you emit the metric from multiple Lambda functions using different versions of Datadog layers, this extra tag won't increase # of billed custom metrics, as its cardinality is 1. Say, if the # of unique combinations of other tags is 12, then 12 * 1 is still 12.
This doc might be helpful: https://docs.datadoghq.com/account_management/billing/custom_metrics/?tab=distribution
Let me know if I missed anything.
from datadog-lambda-js.
I no longer need of removing this default tag, that's why I'm closing this issue.
from datadog-lambda-js.
Related Issues (20)
- "Cannot read properties of undefined (reading 'toString')" when calling getTraceHeaders() HOT 2
- Getting 413 from Datadog when sending metrics HOT 3
- AWS Cloudformation Transform macro is adding two datadog layers , my deployment is running out due to codesize issue for lambda with these two layers HOT 5
- Layer versions >104 not available in eu-north-1 HOT 3
- CustomTraceExtractor does not work as expected HOT 11
- CustomTraceExtractor does not work as expected HOT 1
- CustomTraceExtractor does not work as expected HOT 1
- Version 8.107.0 seems to be broken HOT 2
- datadog: handler not initialized HOT 3
- LICENSE-3rdparty.csv should be updated HOT 2
- Documentation request | Add a CHANGELOG to the root of the project for automated dependencies to pick up the changes HOT 4
- Lambd sendDistributionMetrics - datadog:handler not initialized HOT 7
- Error while testing handler wrapper by datadog() HOT 1
- Sending timer metrics HOT 2
- Circular references are not handled in tag-object when trying to serialize Lambda's response HOT 2
- sendDistributionMetricWithDate no longer including tags HOT 2
- Lambda init failure with Nodejs 20.x version upgrade HOT 7
- isBatchItemFailure fails when lambda response is null HOT 1
- [Feature Request] Add Support for ca-west-1 region HOT 2
- Release layer versions as GitHub releases HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from datadog-lambda-js.