我想删除使用 Datadog 帐户创建的自定义指标。有没有办法做到这一点 ?
我检查了文档,没有找到与指标删除相关的任何内容。
问候,模糊。
我正在寻找在节点程序中使用 axios 向方法 (myMethod) 发送(返回)可读流 -> 我想将响应流式传输到可用于发送给 myMethod() 调用者的 ReadableStream:
// This code does'nt work but that's what I'm trying to do
function myMethod() {
var readableStream = createReadableStream(); // does not exists but that's here to show the concept
const axiosObj = axios({
method: 'get',
url: 'https://www.google.fr',
responseType: 'stream'
}).then(function(res) {
res.data.pipe(readableStream);
}).catch(function(err) {
console.log(err);
});
return readableStream;
}
Run Code Online (Sandbox Code Playgroud)
function myMethodCaller() {
myMethod().on('data', function(chunk) {
// Do some stuffs with the chunks
});
}
Run Code Online (Sandbox Code Playgroud)
我知道我们只能在 res.data 中做一个到 writableStream 的管道。我陷入了返回 …
我正在搜索以在 Datadog 仪表板中显示 QueryValue 字段中指标的最后一个值。
目前,我正在使用
"queries": [
{
"query": "max:blabla.mycount{$env}",
"data_source": "metrics",
"name": "query1",
"aggregator": "last"
}
]
Run Code Online (Sandbox Code Playgroud)
这是正确的方法吗?对于这一系列 mycount [20,1,5,3,2],将取哪个数字?它真的是系列 (2) 中的最后一部还是系列 (20) 中最大的一部?
问候,模糊。