gxthrj opened a new issue #2042: URL: https://github.com/apache/apisix/issues/2042
### Issue description We can add the hostname field to prometheus ### Environment * apisix version 1.5: * OS: By way of environment variables, We can get the host name through the environment variable `HOSTNAME` in k8s. 1. need to modify apisix script, add export `env HOSTNAME;` in https://github.com/apache/apisix/blob/master/bin/apisix; 2. get hostname for env in the plugin named prometheus (https://github.com/apache/apisix/blob/master/apisix/plugins/prometheus/exporter.lua); ---------------------------------------------------------------- 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: [email protected]
