Pulse isn’t in the stores yet. This documentation describes the app as it will ship. Notify me at launch ›

All variables

Every Pulse package reads the same 12 variables. Each one also has an option in code, which takes priority over it.

The same in every package: Node, PHP, Python and Go.

The 12 variables#

Only PULSE_KEY is required. A package reads nothing else under this prefix.

VariableDefaultPurpose
PULSE_KEYnone, requiredThe package key: pk_live_ or pk_test_, then at least 20 characters. Missing: a warning. Malformed: an error. Either way, the package doesn’t start.
PULSE_SENDchecks,crons,logs,versionsWhat’s sent on top of the heartbeat. Empty (PULSE_SEND=): the heartbeat alone. An unknown value is ignored.
PULSE_INCLUDEempty, so everythingKeeps only these checks and jobs.
PULSE_EXCLUDEempty, so nothingRemoves these checks and jobs. Takes priority over PULSE_INCLUDE.
PULSE_LOG_LEVELDEBUGMinimum log level: DEBUG, INFO, WARN, ERROR or FATAL. Any other value falls back to DEBUG, with no message.
PULSE_LOGStruefalse turns off logs, even if PULSE_SEND lists them.
PULSE_PUBLIC_KEYnoneTurns on encryption: pulse_pub_ then 43 characters. If malformed, the package doesn’t start.
PULSE_CLEARstatusWhat stays in the clear when encryption is on: status, checks, crons, versions or none.
PULSE_ENDPOINThttps://api.pulse-app.siThe address to send to, for Pulse Relay. https required, except for localhost, 127.0.0.1 and ::1.
PULSE_RELAY_FINGERPRINTnoneThe SHA-256 fingerprint of the relay’s certificate, AA:BB:…. If it doesn’t match, nothing leaves.
PULSE_APP_VERSIONdepends on the languageYour app’s version, 60 characters at most. A new value records a deployment.
PULSE_DISABLEDfalsetrue turns everything off, for tests and CI.

Choose what is sent#

PULSE_SEND, PULSE_INCLUDE and PULSE_EXCLUDE take comma-separated lists. In the last two, * is a wildcard and case doesn’t matter.

.env
PULSE_SEND=checks,logsPULSE_EXCLUDE="File emails,export-*"PULSE_LOG_LEVEL=WARN
`PULSE_SEND` valueWhat it sends
checksThe state of dependencies.
cronsScheduled jobs and their runs.
logsLogs, on Pro and Team.
versionsThe versions of the framework and your app, and the start date.

Default app version#

PackageWithout `PULSE_APP_VERSION`
Node (NestJS, Next.js)npm_package_version, present only if the app is started by an npm, pnpm or yarn script.
Laravel, SymfonyNo version.
PythonNo version.
GoThe main module’s version in the build info.

Options in code#

Each variable has its option, and the option takes priority over the variable.

PackageWhereNames
NestJSPulseModule.forRoot({…})key, send, include, exclude, logLevel, logs, publicKey, clear, endpoint, relayFingerprint, appVersion, disabled
Next.jsstartPulse({…})The same
Laravelconfig/pulse-app.phpkey, send, include, exclude, log_level, logs, public_key, clear, endpoint, relay_fingerprint, app_version, disabled
Symfonyconfig/packages/pulse.yamlThe same
PythonPULSE = {…} for Django, otherwise start_pulse(…)The same
Gopulse.Options{…}Key, Send, Include, Exclude, LogLevel, Logs, PublicKey, Clear, Endpoint, RelayFingerprint, AppVersion, Disabled

Going through Pulse Relay#

On the Team plan in VPS mode, data goes through your own relay. Only the address’s origin is kept.

.env
PULSE_ENDPOINT=https://relay.orbit.examplePULSE_RELAY_FINGERPRINT=AA:BB:CC:…

Secure mode#

PULSE_PUBLIC_KEY encrypts reports and logs on your server. PULSE_CLEAR chooses what Pulse keeps in the clear so it can alert you. PHP needs sodium and openssl, Python needs pip install "pulse-python[secure]". Without them, the package refuses to start, so nothing is sent in the clear by mistake.

Once the mode is on, Secure mode is on for this app means the key is missing and the package stops. PULSE_PUBLIC_KEY no longer matches means it was replaced in the app. Encryption is reserved for Pro and Team.

Other variables read#

The package also reads a few variables the platform sets itself. You don’t need to set them: npm_package_version, NEXT_RUNTIME for Next.js, RUN_MAIN for Django, FLASK_RUN_FROM_CLI, FLASK_DEBUG and WERKZEUG_RUN_MAIN for Flask. Pulse Agent has its own variables.

Still missing an answer? Contact support