Skip to content
Snippets Groups Projects
Commit ea3fd773 authored by Florian Sesser's avatar Florian Sesser
Browse files

Also publish number of Tahoe Incident Reports

Fixes privatestorageops#287
parent e17e8e8f
No related branches found
No related tags found
2 merge requests!351update production,!346Publish number of Tahoe Incident Reports
Pipeline #2488 passed
......@@ -67,6 +67,9 @@ in {
NUM_CORRUPTION_ADVISORIES=$(find /storage/corruption-advisories/ -type f | wc -l)
echo "tahoe_corruption_advisories_total $NUM_CORRUPTION_ADVISORIES" > "${cfg.outFile}.tmp"
NUM_INCIDENT_REPORTS=$(find /var/db/tahoe-lafs/storage/logs/incidents/ -type f | wc -l)
echo "tahoe_incident_reports_total $NUM_INCIDENT_REPORTS" >> "${cfg.outFile}.tmp"
curl --silent --show-error --fail-with-body "${cfg.scrapeEndpoint}" >> "${cfg.outFile}.tmp"
mv "${cfg.outFile}.tmp" "${cfg.outFile}"
'';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment