Problem/Motivation
Add a Simple Sitemap plugin for Monitoring.
I'd appreciate to be able to see when Simple Sitemaps were generated via a Monitoring plugin, so Monitoring can report success/failure depending on thresholds. E.g if it has been a long time since a sitemap was last generated. This would help diagnosing if sitemap is failing silently.
Proposed resolution
A number plugin representing seconds since last run for each sitemap (currentTime - lastRun).
Thresholds are built into monitoring, so users can configure how many second is good/warning/error.
Sitemap last-creation dates can be found in {simple_sitemap} table.
| Comment | File | Size | Author |
|---|
Issue fork simple_sitemap-3215975
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
gbyteI am willing to review patches, but first we need to focus on #3172662: Display the status for XML sitemaps on the Status report page and then we should be able to reuse that code here.
Comment #3
dpiHmm. Unless the code in the patch is abstracted, e.g into a service, I'm not seeing how useful it will be.
Comment #4
gbyteThat's exactly my point, see comment #6.
Comment #6
dpiComment #7
dpiWhat on earth..
Comment #8
dpiDashboard display: OK
Dashboard display: BAD (Critical)
Monitoring Sensor Configuration Example
Comment #9
dpiComment #10
gbyteAll new features go to 4.x.
Comment #13
dpi@gbyte I've reworked the 3.x MR to work with 4.x,
Notes:
Comment #14
dpi4.2.2 merged in.
Comment #15
gbyteComment #16
gbyte@WalkingDexter @dpi please check out the gitlab review. Let's not merge this before discussing if this should instead go into a 3rd party simple_sitemap_monitoring module which I feel should be the way to go ATM.
Comment #17
walkingdexter commentedI think this functionality can be added directly to the Monitoring module. It already contains plugins for other contrib modules.
Comment #18
gbyte@dpi Let us know if you think this issue should be reassigned to the monitoring module and the code moved into it or if this should go into a 3rd party module. Also please check out the points in the gitlab review.
Comment #19
walkingdexter commentedCreated an issue in the Monitoring module and adapted the proposed code. See #3510954: New sensor: Simple XML Sitemap for further work.