Docs

Documentation

Set up RESQ on a Laravel system in five steps. Add the server agent on Linux hosts for full server metrics.

Step 1

Install the sensor

Add the RESQ sensor to each Laravel application. It needs PHP 8.2 or later and Laravel 11, 12 or 13. It sends error events and health readings to RESQ, and removes personal data before anything leaves your server.

composer require parsec/runresq-sensor

Set these values in the .env file. Your RESQ console shows the address, and shows the key once:

RUNRESQ_ENDPOINT=https://your-team.runresq.com
RUNRESQ_API_KEY=your-key-from-the-console
RUNRESQ_ENVIRONMENT=production

Run the check once. It sends a handshake and one test event to RESQ:

php artisan runresq-sensor:verify

Make sure the Laravel scheduler runs every minute (php artisan schedule:run). The sensor sends buffered events and health readings from the scheduler.

Step 2

Connect GitHub

Install the RESQ GitHub App on the repository for this system. RESQ uses it only to open pull requests. It is the only way RESQ can change your code.

[Link to the GitHub App installation page]

Step 3

Set change limits and budget

In the console, set the most files and lines a single fix may change, and the agent budget for this client. A fix above the limit never reaches approval. Your limits can be stricter than the platform default, never looser.

Step 4

Set up monitoring

Server and app health arrive automatically from the sensor. For full server metrics on Linux hosts, also install the server agent (next section). In the console, add outside-in probes for each system (HTTP, SSL and DNS), adjust alert thresholds if the defaults do not fit, and declare maintenance windows to silence alerts during planned work.

Optional · Linux servers

Install the server agent

The sensor sees only what the PHP process of your app can see. For the full server, install the RESQ server agent on each Linux host. It adds CPU use, I/O wait, swap, filesystem and inode use, disk I/O and network traffic. If you turn on facts, it also reports the OS version and support end date, waiting updates, the state of the services you list, and the top processes by name.

Outbound onlySends readings over HTTPS to your RESQ address. Opens no port and runs nothing RESQ sends.
Not rootRuns as its own system user with no capabilities. Refuses to run as root.
You control upgradesHas no update channel. You verify and install each version yourself.
Supported hostsLinux on amd64 and arm64. A .deb package for Debian and Ubuntu, and a tar.gz file for Rocky Linux and other RPM hosts.

[Plans that include the server agent] [Package and path names are provisional until the agent release is final]

1. Verify the release

Your operator gives you five files: the package, manifest.json, manifest.sig, the SBOM and the RESQ release public key. Get the key fingerprint through a different channel from the download. Do not install a package that fails a check.

openssl pkey -pubin -inform DER -in agent-release.pub.der -out pub.pem
# must print: Verified OK
openssl dgst -sha256 -verify pub.pem -signature manifest.sig manifest.json
# must equal the sha256 of this file in manifest.json
sha256sum runresq-agent_<version>_<arch>.deb

2. Install

On Debian and Ubuntu:

sudo dpkg -i runresq-agent_<version>_<arch>.deb

The package creates the runresq-agent system user and its state directory. It does not start or enrol the agent. On Rocky Linux and other RPM hosts, unpack the tar.gz file and install its files by hand, as the full install guide shows.

[Link to the full install guide]

3. Configure and enrol

Edit the file /etc/runresq-agent/agent.conf:

server_url = https://your-team.runresq.com
host_name  = web-1
facts      = false

In the console, issue an enrolment code for this host. The code works once and expires after 30 minutes. Save it in /etc/runresq-agent/enrolment-code, then run:

sudo -u runresq-agent runresq-agent check-config -config /etc/runresq-agent/agent.conf
sudo -u runresq-agent runresq-agent enrol -config /etc/runresq-agent/agent.conf
sudo rm /etc/runresq-agent/enrolment-code
sudo systemctl enable --now runresq-agent
sudo -u runresq-agent runresq-agent status -config /etc/runresq-agent/agent.conf

4. Check the status

Status showsMeaningAction
runningThe agent sends readings.Nothing.
SENDING SUSPENDEDRESQ refused the host key three times. The agent keeps its readings and tries again every hour.Wait, or enrol again with a new code.
stopped, exit 3RESQ revoked this host.Enrol with a new code, then start the service.
stopped, exit 4The configuration file has an error.Correct the line that check-config names, then start the service.
upgrade requiredRESQ needs a newer agent version.Verify and install the newer version.

Step 5

Your first incident

When the sensor reports an error, RESQ opens an incident and starts work. You get a pull request with its evidence when a fix passes all four gate checks. [Screenshot of the approval screen]

Ingest limits

Each sensor installation can send 600 events per minute, with bursts up to 3,000. The hub supports the current and the previous sensor version.