【问题标题】:how can we customize graphite to support xml format?我们如何自定义石墨以支持 xml 格式?
【发布时间】:2013-10-09 06:36:54
【问题描述】:

graphite 支持 json 和 csv,但是我们如何自定义它以支持其他格式,

这个工作示例:

 10.1.2.15:8080/render?target=testing1.counters.hello.rate&format=json&from=-5min

  10.1.2.15:8080/render?target=testing1.counters.hello.rate&format=csv&from=-5min

我想通过如下格式获取xml报告,可以吗?

示例:

10.1.2.15:8080/render?target=testing1.counters.hello.rate&format=xml&from=-5min

【问题讨论】:

  • @MattSelf 请就这个问题提出一些建议。

标签: graphite


【解决方案1】:

如果此开源项目当前缺少所需的功能,也许您应该自己询问 project 并提交问题或更好的 Pull Request。

【讨论】:

    【解决方案2】:

    写一个包装器。这里是关于向 Graphite 添加自定义 API 端的讨论。

    https://answers.launchpad.net/graphite/+question/147349

    【讨论】:

      猜你喜欢
      • 2023-03-30
      • 2018-02-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多