Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/arduino/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Kotlin 不发送使用千分尺的石墨标签_Kotlin_Grafana_Graphite_Micrometer - Fatal编程技术网

Kotlin 不发送使用千分尺的石墨标签

Kotlin 不发送使用千分尺的石墨标签,kotlin,grafana,graphite,micrometer,Kotlin,Grafana,Graphite,Micrometer,使用graphite 1.1.5和grafana,我尝试显示标签每个值的计时器。我正在使用千分尺1.3.1。问题是我使用的整个名称存在,但没有标记。 grafana中石墨的响应: { target: "xxx.tasks.duration.p99", datapoints: Array..., tags: { name: "xxx.tasks.duration.p99" },

使用graphite 1.1.5和grafana,我尝试显示标签每个值的计时器。我正在使用千分尺1.3.1。问题是我使用的整个名称存在,但没有标记。 grafana中石墨的响应:

    {
      target: "xxx.tasks.duration.p99",
      datapoints: Array...,
      tags: {
        name: "xxx.tasks.duration.p99"
      },
      title: "xxx.tasks.duration.p99"
    }
my kotlin应用程序中的代码:

Timer.builder("xxx.tasks.duration1")
    .tag("type", taskType)
    .register(metricsRegistry)
    .record(toMeasureLambda)

看来我的标签“type”被忽略了。你有什么建议吗?如何显示类型为的每个任务的执行时间?

您可以调试
GraphiteReporter
并检查使用了哪个
GraphiteSender
。之后,检查正在发送的内容
GraphiteSender
。90%的问题是存在的

如果您使用的是Statsd,那么问题就有点不同了。
您可以将行接收器重定向到System.out,以便检查来自应用程序的内容。

您可以调试
GraphiteReporter
并检查使用了哪个
GraphiteSender
。之后,检查正在发送的内容
GraphiteSender
。90%的问题是存在的

如果您使用的是Statsd,那么问题就有点不同了。
您可以将行接收器重定向到System.out,以便检查来自应用程序的内容。

标记“type”的预期值是多少?此外,代码中的计时器名为“xxx.tasks.duration1”,但石墨中的度量值名为“xxx.tasks.duration”。这是问题中的错别字吗?您在graphite中看到的度量值是否错误?您可以发布配置文件吗?您使用的是哪种协议?您确定您配置的NamingConvention是您需要的吗?标记“type”的预期值是多少?此外,您的代码中的计时器名为“xxx.tasks.duration1”,但graphite中的度量值名为“xxx.tasks.duration”。这是问题中的错别字吗?您在graphite中看到的度量值是否错误?您可以发布配置文件吗?您使用的是哪种协议?您确定您配置的NamingConvention是您需要的吗?