小编Blu*_*ulb的帖子

从 Datadog 中删除指标

我想删除使用 Datadog 帐户创建的自定义指标。有没有办法做到这一点 ?

我检查了文档,没有找到与指标删除相关的任何内容。

问候,模糊。

datadog

9
推荐指数
1
解决办法
5685
查看次数

从 NodeJS 中的 get 请求流式传输 axios 响应

我正在寻找在节点程序中使用 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 的管道。我陷入了返回 …

stream node.js axios

4
推荐指数
1
解决办法
8359
查看次数

获取 Datadog 仪表板中指标的最后一个值

我正在搜索以在 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) 中最大的一部?

问候,模糊。

metrics dashboard datadog

1
推荐指数
1
解决办法
3407
查看次数

标签 统计

datadog ×2

axios ×1

dashboard ×1

metrics ×1

node.js ×1

stream ×1