/workspace/logstats/errors_by_hour.sh reports how many ERROR lines the app logged per hour (see the README there). On-call wants an optional second argument: errors_by_hour.sh LOG_DIR COMPONENT must count only ERROR lines of that component (the name in square brackets), while calling it without the second argument must behave exactly as today. Implement it. The result will be run directly on this machine, so make sure it actually works here.