- Monitoring the healthcheck endpoint
- Reviewing server logs
Monitoring CData Sync with the Healthcheck Endpoint
exposes a healthcheck endpoint (http://YourHostName:8181/pub/ping.rst) that you can use to monitor your server and ensure that it is running. In this endpoint:- YourHostName is the host name or IP address of your server.
- Port 8181 is the default web-server port. If you use a custom port, update the URL accordingly.
curl YourHostName:8181/pub/ping.rst
While this example uses the cURL command-line tool, you can use other tools (for example, the Wget command-line tool or your monitoring system) to test the endpoint.
Readiness Check
Unlike a simple ping, this endpoint performs a full readiness check. By default, once every 60 seconds it verifies the following information:- The application data directory is readable and writable.
- The application database can be queried.
- The user directory can be loaded.
Response Codes
The outcome of these checks is reflected by the response code that is returned:- 200 OK: The server is running and all readiness checks succeeded.
-
Response body:
OK - 500 Internal Server Error: The server process is running, but one or more readiness checks failed (for example, issues with the file system, database, or user manager).
- No response / connection error: The server is stopped or unreachable.
OK.


Monitoring CData Sync with Logs
writes server activity logs to this directory:ApplicationDirectory/logs/httpserver.
The ApplicationDirectory location varies by operating system and deployment. For more details, see Configuring the Application Directory.
-
Collect logs from the
httpserverdirectory. - Use the Datadog Agent to ship the logs to Datadog.
- Configure dashboards and alerts in Datadog to track errors or downtime.