在 Graphite 服务器中 - actuator/metrics/http.server.requests 计数未更新
in graphite server - actuator/metrics/http.server.requests count not updating
我有一个 spring 启动项目和 运行。我还在 pom 文件中配置了 micrometer-registry-graphite
的依赖项。我已经使用 docker (下载最新版本 - 1.1.6) 安装了石墨,它是 运行 在 localhost:80
当我点击下方 url 时,它会正确显示点击次数。
http://localhost:5080/api/v1/actuator/metrics/http.server.requests?tag=uri:/queue/{queueId}&tag=status:200
以下是回复,
{
"name": "http.server.requests",
"description": null,
"baseUnit": "milliseconds",
"measurements": [
{
"statistic": "COUNT",
"value": 29.0
},
{
"statistic": "TOTAL_TIME",
"value": 942.520949
},
{
"statistic": "MAX",
"value": 0.0
}
],
"availableTags": [
{
"tag": "exception",
"values": [
"None"
]
},
{
"tag": "method",
"values": [
"GET"
]
},
{
"tag": "outcome",
"values": [
"SUCCESS"
]
}
]
}
当我导航到 Graphite 浏览器时,我无法获得之前使用 actuator/metrics url 获得的计数值。 [我们可以看到服务的 url queue/queueId
转换为某种层次结构形式]。
我可以看到不同的层次结构 (附上图片),为什么它显示在 exception,None 和其他不相关的层次结构下。有人可以解释一下吗,我需要解决方案来获取 Graphite 服务器中的命中数。
Spring boot version: 2.2.4 RELEASE and
micrometer-registry-graphite version: 1.3.2
我在 bootstrap.yml
中错误地将我的石墨服务器指向 port-80
。但是 port-80
正在监听 nginx
,它应该指向正在监听 carbon receiver
的 port-2004
。在 bootstrap.yml
中进行此更改后,我能够解决此问题。
我有一个 spring 启动项目和 运行。我还在 pom 文件中配置了 micrometer-registry-graphite
的依赖项。我已经使用 docker (下载最新版本 - 1.1.6) 安装了石墨,它是 运行 在 localhost:80
当我点击下方 url 时,它会正确显示点击次数。
http://localhost:5080/api/v1/actuator/metrics/http.server.requests?tag=uri:/queue/{queueId}&tag=status:200
以下是回复,
{
"name": "http.server.requests",
"description": null,
"baseUnit": "milliseconds",
"measurements": [
{
"statistic": "COUNT",
"value": 29.0
},
{
"statistic": "TOTAL_TIME",
"value": 942.520949
},
{
"statistic": "MAX",
"value": 0.0
}
],
"availableTags": [
{
"tag": "exception",
"values": [
"None"
]
},
{
"tag": "method",
"values": [
"GET"
]
},
{
"tag": "outcome",
"values": [
"SUCCESS"
]
}
]
}
当我导航到 Graphite 浏览器时,我无法获得之前使用 actuator/metrics url 获得的计数值。 [我们可以看到服务的 url queue/queueId
转换为某种层次结构形式]。
我可以看到不同的层次结构 (附上图片),为什么它显示在 exception,None 和其他不相关的层次结构下。有人可以解释一下吗,我需要解决方案来获取 Graphite 服务器中的命中数。
Spring boot version: 2.2.4 RELEASE and micrometer-registry-graphite version: 1.3.2
我在 bootstrap.yml
中错误地将我的石墨服务器指向 port-80
。但是 port-80
正在监听 nginx
,它应该指向正在监听 carbon receiver
的 port-2004
。在 bootstrap.yml
中进行此更改后,我能够解决此问题。