You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/08/14 14:24:22 UTC

[GitHub] [apisix] nic-chen opened a new pull request #2063: change: add hostname label for metric `etcd_reachable`

nic-chen opened a new pull request #2063:
URL: https://github.com/apache/apisix/pull/2063


   ### What this PR does / why we need it:
   add hostname label for metric `etcd_reachable`
   
   ### Pre-submission checklist:
   
   * [x] Did you explain what problem does this PR solve? Or what new features have been added?
   * [x] Have you added corresponding test cases?
   * [ ] Have you modified the corresponding document?
   * [x] Is this PR backward compatible?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis merged pull request #2063: change: add prometheus metrics `node_info`(hostname)

Posted by GitBox <gi...@apache.org>.
membphis merged pull request #2063:
URL: https://github.com/apache/apisix/pull/2063


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] membphis commented on a change in pull request #2063: change: add hostname label for metric `etcd_reachable`

Posted by GitBox <gi...@apache.org>.
membphis commented on a change in pull request #2063:
URL: https://github.com/apache/apisix/pull/2063#discussion_r470688687



##########
File path: apisix/plugins/prometheus/exporter.lua
##########
@@ -76,7 +76,8 @@ function _M.init()
             {"state"})
 
     metrics.etcd_reachable = prometheus:gauge("etcd_reachable",
-            "Config server etcd reachable from APISIX, 0 is unreachable")
+            "Config server etcd reachable from APISIX, 0 is unreachable",
+            {"hostname"})

Review comment:
       we'd better use a new `metric` like `node_info`.
   store the `hostname` in `etcd_reachable`, it makes me confused.
   




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org