Exposes a simple API that Prometheus can call to scrape metrics
- Deploy the code
- Create a public site
- Give access to the
PrometheusAPIclass to the site guest user a. Go to the site and click onPublic Access Settingsb. AddPrometheusAPIto theEnabled Apex Class Access - Navigate to
<public site url>/services/apexrest/api/v1/prometheusto view the API!