Monitoring
Hyacinth operates by scraping third-party websites. At any time, a change could be made to these websites which breaks Hyacinth's integrations with them. If you wish to increase your visibility into such issues, the following page details some potential solutions.
Metrics
Hyacinth includes built-in support for writing metrics to a Victoria Metrics cluster. This allows metrics such as request counts and poll job execution results to be monitored live with an observability platform like Grafana.
To enable metrics support, add the following variables to your .env
file:
The following metrics are supported:
hyacinth_scrape_count
- Counter of pages scraped by Browserless, labeled by domain.hyacinth_poll_job_execution_count
- Counter representing the results of completed search poll jobs. Metric includes labels forsuccess
to indicate whether the polling job succeeded as well as theplugin
the search was executed with.
Some example queries on these metrics are provided below, ready to be pasted into a Grafana panel.
Browserless requests by domain
Successful poll job executions
Failing poll job executions
Error reporting
By default, a failing search poll job will write a crash report to the logs/
directory. This behavior can be configured with the HYACINTH_SAVE_CRASH_REPORTS
and HYACINTH_CRASH_REPORTS_SAVE_FOLDER
environment variables.