Status API
You can use the status API to check the health of Puppet Enterprise (PE) components and services. It is useful for automatically monitoring your infrastructure, removing unhealthy service instances from a load-balanced pool, checking configuration values, or troubleshooting issues in PE.
The status API endpoints listen on several ports. You can use the endpoints to query all
services on a specified port or query an individual service on a specified port. The
ports and services on each port are as follows:
Status API category | Port | Services |
---|---|---|
Console-services status API | 4433 |
|
Puppet Server status API | 8140 |
|
Orchestrator status API | 8143 |
|
PuppetDB status API | 8081 | PuppetDB |
Important: The status API documentation uses default ports. If you changed a
service's port, you might need to change the port number in your endpoint
request.
Endpoint responses can return an overall health status (healthy
, error
, or unknown
) and detailed information, such as database availability, the
health of other required services, or connectivity to the primary server.
-
Status API authentication
Token-based authentication is not required to access the status API. You can choose to authenticate requests with certificates or you can use HTTP to access the API without authentication. -
Forming status API requests
When forming status API requests, you must specify the port corresponding to the Puppet Enterprise (PE) service you want to inspect. -
Status API: services endpoint
The/services
endpoints provide machine-consumable information about running services. They are intended for scripting and integration with other services. -
Status API: services plaintext endpoint
The statusservice plaintext
endpoints are intended for load balancers that don't support JSON parsing or parameter setting. These endpoints return simple string bodies (either the service's state or a simple error message) and a relevant status code. -
Status API: metrics endpoint
Puppet Server can track advanced metrics to give you additional insight into its performance and health.
Related information