• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

INFURA/go-ipfs-datadog-plugin: go-ipfs plugin to support Datadog APM tracing

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

INFURA/go-ipfs-datadog-plugin

开源软件地址:

https://github.com/INFURA/go-ipfs-datadog-plugin

开源编程语言:

Go 79.0%

开源软件介绍:

go-ipfs-datadog-plugin

This repository contains the following go-ipfs plugins:

  • Datadog tracing plugin configures the Datadog tracer to collect the traces and relay them to the agent. go-ipfs tracing instrumentation is partial at the moment but should improve over time.
  • Datadog continuous profiler pluging configure the Datadog profiler to capture CPU and memory usage over time.
  • Datadog logger plugin allows users to set log levels for each go-ipfs subsystem.
  • Datadog metrics plugin configure a datadog exporter for OpenCensus metrics.

Caveats

  • Plugins only work on Linux and MacOS at the moment. You can track the progress of this issue here: golang/go#19282

  • If you are using go-ipfs 0.4.22 or older, some traces will be lost. See: ipfs/go-ipfs#6672

Building and Installing

You must build the plugin with the exact version of go used to build the go-ipfs binary you will use it with. You can find the go version for go-ipfs builds from dist.ipfs.io in the build-info file, e.g. https://dist.ipfs.io/go-ipfs/v0.4.22/build-info or by running ipfs version --all

You can build this plugin by running make build. You can then install it into your local IPFS repo by running make install.

Plugins need to be built against the correct version of go-ipfs. This package generally tracks the latest go-ipfs release but if you need to build against a different version, please set the IPFS_VERSION environment variable.

You can set IPFS_VERSION to:

  • vX.Y.Z to build against that version of IPFS.
  • $commit or $branch to build against a specific go-ipfs commit or branch.
  • /absolute/path/to/source to build against a specific go-ipfs checkout.

To update the go-ipfs, run:

> make go.mod IPFS_VERSION=version

Manual Installation

Copy datadog-plugin.so to $IPFS_DIR/plugins/datadog-plugin.so (or run make install if you are installing locally)

Configuration

Define plugin configurations variables in the ipfs config file.

  • datadog-logger config:
{
...
"Plugins": {
    "Plugins": {
    ...
      "datadog-logger": {
        "Config": {
            "Levels": {
                "fatal": ["system1", "system2", ...],
                "error": [...]
                "warn": [...]
                ...
            },
            "DefaultLevel": "info"
        },
        "Disabled": false
      },
    ...
    }
  },
...
}
  • datadog-tracer config:
{
...
"Plugins": {
    "Plugins": {
      ...
      "datadog-tracer": {
        "Config": {
            "TracerName": "go-ipfs-custom"
        },
        "Disabled": false
      }
      ...
    }
  },
...
}
  • datadog-profiler config:
...
"Plugins": {
   "Plugins": {
     ...
     "datadog-profiler": {
       "Config": {
           "TracerName": "go-ipfs-custom"
       },
       "Disabled": false
     }
     ...
   }
 },
...

References

License

MIT




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
proximax-storage/java-xpx-ipfs-api: This is ProximaX's forked version of IPF ...发布时间:2022-06-22
下一篇:
Ipfs public gateway status发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap