Search code examples
automated-testsprometheuscypress

Cypress.io compatible with Prometheus?


We would probably use Cypress.io together with Prometheus. Cypress makes a very good impression as a testing framework for end-to-end tests. However we ask ourselves whether we will be able to easily connect Cypress with Prometheus so that the metrics find their way to the On-the-Wall-Dashboard.


Solution

  • Conceptually this is possible. Use Cypress.io's logging ability and Prometheus's caching concept to provide a consistent data source when the Prometheus process scraps for data. Then in Graphana (an example only, other dashboard systems work as well) display the count, aggregate, time series data as desired.

    My question, the same as @Zach and @Marc, is what data are you trying to display? Page load times? animation execution times? Test pass / fail? But again, conceptually it would be possible.