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 2022/06/24 14:39:42 UTC

[GitHub] [apisix] xuminwlt opened a new issue, #7325: Prometheus metrics support view attribute config like route..., not all of them.

xuminwlt opened a new issue, #7325:
URL: https://github.com/apache/apisix/issues/7325

   ### Description
   
   When the  route's number great than 1000+, the `/prometheus` endpiont and prometheus plugin got many error and not work well.
   
   Need some config for metrics view, can do something like `opentelemetry metrics view` with view attribute's config.
   ```
   code | upstream 服务返回的 HTTP 状态码。
   -- | --
   route | 请求匹配的 route 的 route_id,未匹配,则默认为空字符串。
   matched_uri | 请求匹配的 route 的 uri,未匹配,则默认为空字符串。
   matched_host | 请求匹配的 route 的 host,未匹配,则默认为空字符串。
   service | 与请求匹配的 route 的 service_id。当路由缺少 service_id 时,则默认为 $host。
   consumer | 与请求匹配的 consumer 的 consumer_name。未匹配,则默认为空字符串。
   node | 命中的 upstream 节点 ip。
   ```
   
   BTW, is there any config i can set, enable the prometheus's plugins, and make the route's level metrics not collector?


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

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


[GitHub] [apisix] spacewander closed issue #7325: Prometheus metrics support view attribute config like route..., not all of them.

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #7325: Prometheus metrics support view attribute config like route..., not all of them.
URL: https://github.com/apache/apisix/issues/7325


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] xuminwlt commented on issue #7325: Prometheus metrics support view attribute config like route..., not all of them.

Posted by GitBox <gi...@apache.org>.
xuminwlt commented on issue #7325:
URL: https://github.com/apache/apisix/issues/7325#issuecomment-1166526547

   > > BTW, is there any config i can set, enable the prometheus's plugins, and make the route's level metrics not collector?
   > 
   > If the `prometheus` plugin is not set in the route, the route's metrics won't be collected.
   > 
   > > Need some config for metrics view, can do something like opentelemetry metrics view with view attribute's config.
   > 
   > Similar to #4273?
   
   YES, so some label we do not need to collect. we can calculate a constant number of the metrics.


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] spacewander commented on issue #7325: Prometheus metrics support view attribute config like route..., not all of them.

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7325:
URL: https://github.com/apache/apisix/issues/7325#issuecomment-1166542732

   Are you willing to work on it?


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] spacewander commented on issue #7325: Prometheus metrics support view attribute config like route..., not all of them.

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7325:
URL: https://github.com/apache/apisix/issues/7325#issuecomment-1168258629

   Duplicate of #4273


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix] spacewander commented on issue #7325: Prometheus metrics support view attribute config like route..., not all of them.

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #7325:
URL: https://github.com/apache/apisix/issues/7325#issuecomment-1166520776

   > BTW, is there any config i can set, enable the prometheus's plugins, and make the route's level metrics not collector?
   
   If the `prometheus` plugin is not set in the route, the route's metrics won't be collected.
   
   > Need some config for metrics view, can do something like opentelemetry metrics view with view attribute's config.
   
   Similar to https://github.com/apache/apisix/issues/4273? 
   


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

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

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