This check monitors Harbor through the Datadog Agent.
Follow the instructions below to install and configure this check for an Agent running on a host. For containerized environments, see the Autodiscovery Integration Templates for guidance on applying these instructions.
The Harbor check is included in the Datadog Agent package. No additional installation is needed on your server.
-
Edit the
harbor.d/conf.yamlfile, in theconf.d/folder at the root of your Agent's configuration directory to start collecting your Harbor performance data. See the sample harbor.d/conf.yaml for all available configuration options.
You can specify any type of user in the config but an account with admin permissions is required to fetch disk metrics. The metric harbor.projects.count only reflects the number of projects the provided user can access.
Available for Agent >6.0
-
Collecting logs is disabled by default in the Datadog Agent, you need to enable it in
datadog.yaml:logs_enabled: true
-
Add this configuration block to your
harbor.d/conf.yamlfile to start collecting your Harbor logs:logs: - type: file path: /var/log/harbor/*.log source: harbor service: <SERVICE_NAME>
Run the Agent's status subcommand and look for harbor under the Checks section.
See metadata.csv for a list of metrics provided by this integration.
-
harbor.can_connectReturnsOKif the Harbor API is reachable and authentication is successful, otherwise returnsCRITICAL. -
harbor.statusReturnsOKif the specified Harbor component is healthy, otherwise returnsCRITICAL. ReturnsUNKNOWNwith Harbor < 1.5. -
harbor.registry.statusReturnsOKif the service is healthy, otherwise returnsCRITICAL. Monitors the health of external registries used by Harbor for replication.
The Harbor integration does not include any events.
Need help? Contact Datadog support.