Introduction
JFrog Worker is a service that allows you to create workers that react to events in the JFrog Platform and execute custom code you write. To retrieve metrics from this service, a regular admin-scoped token will not work. Instead, a different scoped token must be used.
This article provides step-by-step instructions for retrieving metrics from the Worker service using the correct scope.
Prerequisites:
- Artifactory with Worker service configured
- Open Metrics enabled in Artifactory
Resolution
When using a regular admin-scoped Access Token to retrieve Worker metrics, the request will fail.
Step-by-Step Instructions:
Conclusion
To access Worker metrics, you must generate and use an Access Token with the system:metrics:r scope. Regular admin-scoped tokens are insufficient for this operation.