louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
59.02k stars 5.3k forks source link

Monitoring via playwright tests #4804

Open kaystrobach opened 5 months ago

kaystrobach commented 5 months ago

πŸ“‘ I have found these related issues/pull requests

🏷️ Feature Request Type

New monitor

πŸ”– Feature description

As a user i want to run playwright tests with kuma in order to check more complex szenarios.

this is also available in other monitoring solutions:

βœ”οΈ Solution

In browser playwright tests. It’s ok, to copy them in a textarea, the best solution would be to connect a git repo to get the tests.

❓ Alternatives

None, without switching products or having a middleware to run tests.

πŸ“ Additional Context

No response

CommanderStorm commented 5 months ago

I think what you are asking about (especially given the asked git integration) is likely better served by a CI-piepeline

kaystrobach commented 5 months ago

Agree. Git is completely optional. Main use case is very simple tests, like login to idm, open service.

The ci pipeline runs anyway. But can not run every minute etc.

other uptime checkers start to integrate these simple test case implementations to have better insights.

kaystrobach commented 5 months ago

related #3056

kaystrobach commented 5 months ago

If it helps i can create a short video showing the use case. Please just tell me. Thanks

kaystrobach commented 5 months ago

Other similar tools implementing playwright:

techmattr commented 4 months ago

I too would love to see more complex checks available. I mentioned this on Reddit and was advised it was being tracked here. Currently Uptime Kuma has very limited use cases for me as all it can do is make sure my login pages are available. If Uptime Kuma had a way to log into these sites it could validate the site is actually working. The playwright integration changedetection.io is done amazingly well and a similar feature would add so much value to Uptime Kuma.

kaystrobach commented 4 months ago

@louislam I have a developer set on that topic, if that is interesting for you, he can build the whole PoC and finalize it in the next weeks. Would be a thank you from the https://github.com/fucodo/ and https://github.com/4viewture/ team

pilulu commented 4 months ago

Hi,

I'm really interested in a feature like this in order to monitor small things that need a javascript. I agree that a complex process like logging or loading multiple pages is more adapted on a CI process. I my use case i would only be sure that all few elements on a page that need javascript rendering are loaded properly.

If it's not a git repo, i expect at least a small textarea to evaluate short playwright scenarios from probe configuration page.

kaystrobach commented 3 months ago

@louislam once I have the commitment, that this would get integrated, if implemented well, I would set a dev on that task in the next weeks, maybe for v2+?