Edit the harbor.d/conf.yaml file, in the conf.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.
Note: 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.
harbor.can_connect Returns OK if the Harbor API is reachable and authentication is successful, otherwise returns CRITICAL. Statuses: ok, critical
harbor.status Returns OK if the specified Harbor component is healthy, otherwise returns CRITICAL. Returns UNKNOWN with Harbor < 1.5. Statuses: ok, unknown, critical
harbor.registry.status Returns OK if the service is healthy, otherwise returns CRITICAL. Monitors the health of external registries used by Harbor for replication. Statuses: ok, critical