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 2021/01/29 09:44:59 UTC

[GitHub] [apisix] Yiyiyimu opened a new pull request #3457: chore: update grafana to 'for external use' version

Yiyiyimu opened a new pull request #3457:
URL: https://github.com/apache/apisix/pull/3457


   ### What this PR does / why we need it:
   Ref #3402
   
   - update grafana to 'for external use' version
   - add screenshot of new panels
   
   ### Pre-submission checklist:
   
   * [x] Did you explain what problem does this PR solve? Or what new features have been added?
   * [ ] Have you added corresponding test cases?
   * [ ] Have you modified the corresponding document?
   * [x] Is this PR backward compatible? **If it is not backward compatible, please discuss on the [mailing list](https://github.com/apache/apisix/tree/master#community) first**
   


----------------------------------------------------------------
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] Yiyiyimu commented on pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-807973257


   > LGTM, and I think we can update this part too.
   > 
   > ![image](https://user-images.githubusercontent.com/6814606/112502605-2c863a00-8dc5-11eb-89f3-096d83c74bec.png)
   
   Hi @LiteSun could you offer some help here? I'm not familiar with frontend layout 😬 


-- 
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] Yiyiyimu commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       For `etcd-reachable` and `nginx metric errors`, the comments of what these two metrics do are explained on the metrics page alongside with the data. And for how I implement it
   - `etcd-reachable`: when etcd is reachable, the metric would be 1 and the graph would be green. While it is disconnected, the metric turns to 0 and the panel would be red.
   - `nginx metric errors`: it measures how many errors of nginx-lua-prometheus. I also leave it to only show the current error number without time series, since if it is larger than 0, it should be taken care of. And also if it is larger than 0, it would turn red.




----------------------------------------------------------------
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] Yiyiyimu edited a comment on pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-807973257


   > LGTM, and I think we can update this part too.
   > 
   > ![image](https://user-images.githubusercontent.com/6814606/112502605-2c863a00-8dc5-11eb-89f3-096d83c74bec.png)
   
   ~Hi @LiteSun could you offer some help here? I'm not familiar with frontend layout 😬 ~
   Fixed in #3993 


-- 
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 #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       ![image](https://user-images.githubusercontent.com/6814606/106301624-df895a00-6292-11eb-81cf-df719a7e6e5c.png)
   




----------------------------------------------------------------
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] Yiyiyimu commented on a change in pull request #3457: fix: refine example grafana dashboard

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       @membphis @tokers PTAL
   
   Updated to newer version of nginx-lua-prometheus, and it would looks like
   ![image](https://github.com/apache/apisix/blob/5a45ba741522d275e83eeaa4bfcd01f09e69e148/doc/images/plugin/grafana_4.png?raw=true)
   




----------------------------------------------------------------
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 pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
membphis commented on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-777223534


   > I think the HTTP requests latency can be updated to only show the 95th percentile (or 90th?), it's not easy to understand now.
   
   agree +1


----------------------------------------------------------------
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] Yiyiyimu commented on pull request #3457: chore: update grafana to 'for external use' version

Posted by GitBox <gi...@apache.org>.
Yiyiyimu commented on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-770631491


   waiting for knyar/nginx-lua-prometheus#119 got merged


----------------------------------------------------------------
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] Yiyiyimu commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       would fix leading for trailing zeros in https://github.com/knyar/nginx-lua-prometheus/pull/119




----------------------------------------------------------------
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] Yiyiyimu edited a comment on pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-770631491


   waiting for knyar/nginx-lua-prometheus#119 got merged
   
   ---
   
   PR got merged, waiting for new release
   
   ---
   
   Applied the new release


----------------------------------------------------------------
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] Yiyiyimu edited a comment on pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-807973257


   > LGTM, and I think we can update this part too.
   > 
   > ![image](https://user-images.githubusercontent.com/6814606/112502605-2c863a00-8dc5-11eb-89f3-096d83c74bec.png)
   
   ~Hi @LiteSun could you offer some help here? I'm not familiar with frontend layout 😬~
   Fixed in #3993 


-- 
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] Yiyiyimu edited a comment on pull request #3457: fix: refine example grafana dashboard

Posted by GitBox <gi...@apache.org>.
Yiyiyimu edited a comment on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-770631491


   waiting for knyar/nginx-lua-prometheus#119 got merged
   
   ---
   
   PR got merged, waiting for new release


----------------------------------------------------------------
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] Firstsawyou commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/json/apisix-grafana-dashboard.json
##########
@@ -1476,5 +1516,5 @@
   "timezone": "",
   "title": "Apache APISIX",
   "uid": "bLlNuRLWz",
-  "version": 4
+  "version": 5
 }

Review comment:
       Missing a newline at end of file.




----------------------------------------------------------------
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] starsz merged pull request #3457: fix: refine example grafana dashboard

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


   


-- 
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] Yiyiyimu commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       There are currently two problems for histogram:
   1. The legends have leading for trailing zeros ([reason](https://github.com/knyar/nginx-lua-prometheus/blob/499de49cab0217c855dd9be12c3c1596cc2e9827/prometheus.lua#L24-L27)) so it looks messy
   2. There are two many buckets out there. We don't need buckets like "30,40,50,60,70,80,90,100,200,300,400,500". After reduce buckets, it somewhat looks better
   ![image](https://user-images.githubusercontent.com/34589752/106387869-c3162a80-6416-11eb-979f-aeada2f7564b.png)
   
   Or we could use 95-percentile as @tokers said. I'm not so familiar with monitor APISIX, so what do you think about that




----------------------------------------------------------------
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] Yiyiyimu commented on a change in pull request #3457: fix: refine example grafana dashboard

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       Hi @membphis PTAL
   
   Updated to newer version of nginx-lua-prometheus, and it would looks like
   ![image](https://github.com/apache/apisix/blob/5a45ba741522d275e83eeaa4bfcd01f09e69e148/doc/images/plugin/grafana_4.png?raw=true)
   




----------------------------------------------------------------
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 #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       ![Uploading image.png…]()
   




----------------------------------------------------------------
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] Yiyiyimu commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/plugins/prometheus.md
##########
@@ -120,6 +120,10 @@ Or you can goto [Grafana official](https://grafana.com/grafana/dashboards/11719)
 
 ![](../../doc/images/plugin/grafana_3.png)
 
+![](../../doc/images/plugin/grafana_4.png)

Review comment:
       For `etcd-reachable` and `nginx metric errors`, the comments of what these two metrics do are explained on the metrics page alongside with the data. And for how I implement it
   - `etcd-reachable`: when etcd is reachable, the metric would be 1 and the graph would be green. While it is disconnected, the metric turns to 0 and the panel would be red.
   - `nginx metric errors`: it measures how many errors of nginx-lua-prometheus. I also leave it to only show the current error number, since if it is larger than 0, it should be taken care of. And also if it is larger than 0, it would turn red.




----------------------------------------------------------------
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] Yiyiyimu commented on a change in pull request #3457: chore: update grafana to 'for external use' version

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



##########
File path: doc/json/apisix-grafana-dashboard.json
##########
@@ -1476,5 +1516,5 @@
   "timezone": "",
   "title": "Apache APISIX",
   "uid": "bLlNuRLWz",
-  "version": 4
+  "version": 5
 }

Review comment:
       Thanks! Fixed!




----------------------------------------------------------------
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] tokers commented on pull request #3457: chore: update grafana to 'for external use' version

Posted by GitBox <gi...@apache.org>.
tokers commented on pull request #3457:
URL: https://github.com/apache/apisix/pull/3457#issuecomment-770166422


   I think the HTTP requests latency can be updated to only show the 95th percentile (or 90th?), it's not easy to understand now.


----------------------------------------------------------------
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