The Gravitee API Management (APIM) Management API component includes its own internal API for monitoring and retrieving technical information about the component.
Enable the API as a service in the gravitee.yml
file and update any other required configuration:
services:
core:
http:
enabled: true
port: 18083
host: localhost
authentication:
type: basic
users:
admin: adminadmin
The above values are defined as follows:
enabled
: Whether the service is enabled (defaulttrue
).port
: The port the service listens on (default18083
). Ensure you use a port not already in use by another APIM component.host
: The host (defaultlocalhost
).authentication.type
: Authentication type for requests (defaultbasic
). Use the valuenone
if no authentication is required.authentication.users
: A list ofuser: password
combinations. Only required if authentication type isbasic
.
Operation | Description | Example |
---|---|---|
GET /_node | Gets generic node information. |
|
GET /_node/health?probes=#probe1,#probe2 | Gets the health status of the component. Probes can be filtered using the optional This endpoint can be used by a load balancer, e.g., to determine if a component instance is not in the pool. The following probes are not displayed by default and you must explicitly use the query param to retrieve them: - cpu - memory - api-sync These probes are considered healthy if they are under a configurable threshold (default is 80%). To configure the default, add it to your [source, yml] ---- services: health: threshold: cpu: 80 memory: 80 ---- |
|
GET /_node/configuration | Gets the node configuration from the gravitee.yml file and/or environment variables. |
|
GET /_node/monitor | Gets monitoring information from the JVM and the server. |
|