server-info Plugin periodically reports basic server information to etcd.
The information reported by the Plugin is explained below:
|boot_time||integer||Bootstrap time (UNIX timestamp) of the APISIX instance. Resets when hot updating but not when APISIX is just reloaded.|
|id||string||APISIX instance ID.|
|etcd_version||string||Version of the etcd cluster used by APISIX. Will be |
|version||string||Version of APISIX instance.|
|hostname||string||Hostname of the machine/pod APISIX is deployed to.|
This Plugin exposes the endpoint
/v1/server_info to the Control API
server-info to the Plugin list in your configuration file (
We can change the report configurations in the
plugin_attr section of
The following configurations of the server info report can be customized:
|report_ttl||integer||36||Time in seconds after which the report is deleted from etcd (maximum: 86400, minimum: 3).|
To customize, you can modify the
plugin_attr attribute in your configuration file (
After you enable the Plugin as mentioned above, you can access the server info report through the Control API:
curl http://127.0.0.1:9090/v1/server_info -s | jq .
You can also view the server info report through the APISIX Dashboard.
To disable the Plugin, you can remove
server-info from the list of Plugins in your configuration file: