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/07/04 15:33:54 UTC

[GitHub] [apisix] liwenzheng opened a new issue #4530: bug: docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。

liwenzheng opened a new issue #4530:
URL: https://github.com/apache/apisix/issues/4530


   ### Issue description
   ``` 
   docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。
   ```
   ### conf/config.yalm
   ```
   plugin_attr:
     prometheus:
       export_uri: /apisix/prometheus/metrics
       export_addr:
         ip:  172.20.225.102
         port: 9092
   ```
   ### docker-compose.yml
   ```
       networks:
         apisix:
   ```
   ### error
   ```
   nginx: [emerg] bind() to 172.20.225.102:9092 failed (99: Address not available)
   ```
   
    
   


-- 
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] tokers commented on issue #4530: bug: docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。

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


   @liwenzheng That's expected, you cannot configure an IP address that is not attached to the NIC.


-- 
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] liwenzheng commented on issue #4530: bug: docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。

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


   > @liwenzheng That's expected, you cannot configure an IP address that is not attached to the NIC.
   
   这是处于保护吗?可是很多时候prometheus在隔壁的host上。


-- 
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] tzssangglass commented on issue #4530: bug: docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。

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


   I would also like to know, in this case, is the `INTRANET_IP` set to the ip on the container network where apisix is located? This way, I can access prometheus export from the host using the ip of `INTRANET_IP`?


-- 
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] tokers commented on issue #4530: bug: docker启动环境下,配置promethues,ip检测逻辑有问题,如非容器内ip则会报错。

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


   > > @liwenzheng That's expected, you cannot configure an IP address that is not attached to the NIC.
   > 
   > 这是处于保护吗?可是很多时候prometheus在隔壁的host上。
   
   What is the meaning of `隔壁的host`?


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