woodpecker-ci / woodpecker

Woodpecker is a simple yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
3.94k stars 353 forks source link

[Feature] Admin Panel #345

Open 6543 opened 2 years ago

6543 commented 2 years ago

add an Admin panel to:

jwildeboer commented 1 year ago

Some basic graphs that show jobs per hour/day/week (maybe per queue), average and min/max runtime/memory/storage use of jobs, Number of fails/cancels/OK per hour/day/week, most often running jobs, most jobs per user/org

JulienPalard commented 8 months ago

I'm loving the admin panel, but it looks like the "last_contact" field is never updated. I'm running v1.0.5 (both server and agent side). My agent correctly picks the jobs though, so they're in contact.

Now for example I see "2 hours ago" for the last contact. I checked the sqlite db and it looks like it has been updated at least once a few minutes after its creation:

sqlite> select last_contact - created from agents;
261

I tried to restart the agent but ... oh it created a new line in the agents table, I was not expecting this.

6543 commented 8 months ago

@JulienPalard try using next (upcomming v2.0.0)

JulienPalard commented 8 months ago

Oh, looks like it gets updated, just slowly, I now see "last contact: 4 hours ago", which means the last_contact gets updated, but not that often (like every 4 hours ?).

@6543 I'll gladly beta-test the v2.0.0, should I also upgrade my agents?

6543 commented 8 months ago

yes you have to update server and agents at the same time ... else agents wont connect anymore