Browse the guides
Health
App and server health, drawn: what is wrong now, crashes and errors, incidents, alert rules, attacks refused, and traces of slow requests.
The Health section says whether your apps and servers are working, drawn rather than listed. Its overview puts what is wrong now at the top, by name and place, and draws every measure beneath it. Its other tabs hold every error, one line for each cause, the incidents that gather what went wrong together, and your alert rules. It is under Health in the sidebar, and each app's own health is a click from its Overview.
A thousand crashes for the same reason are one error that says a thousand times, when it began, in which release, and when it last happened. Each app's Errors tab, beside its logs, lists its own. Its Traces tab says where its requests' time goes: traces of what it was sent, and profiles of the functions it ran.
The overview, drawn
The first tab of Health draws each measure in the form that suits it, over the last day, for every app and server you can see. Every chart has its numbers in a table beneath it, under Show the numbers, so nothing is told by a colour alone.
| Chart | What it shows |
|---|---|
| Apps, your servers and databases by health | Rings of how many are working, need attention, are down, are stopped on purpose, or are not known yet, as health is judged. The whole is written inside, and each part's count and share beside it. |
| Attacks, by what the firewalls did | A ring of the requests your apps' firewalls refused in the last 24 hours: blocked, rate limited, challenged, those an observing firewall would have blocked, and uploads let through without a malware scan. |
| Requests, hour by hour | Lines of the requests every app was sent, and of those that failed with a server error (5xx), as the edge counted them. |
| Answer times | Lines of how long the busiest apps took to answer, hour by hour: within how long half of their requests were answered (p50), and nineteen in twenty (p95). An hour with nothing timed is a gap in the line, not an answer in no time. |
| Errors, hour by hour, by kind | Columns of the errors of each hour, coloured by kind, with the apps and servers they happened on ranked beside them, most first. Choosing a column opens the Errors tab at that hour. |
| Memory used, of what each app reserves | A bar for each app: the most its copies used together in a minute of the last ten, against what they reserve. Amber from three quarters full, red from nine tenths, the fullest first. |
| Uptime | A strip for each app with an address: its last 24 hours, an hour a cell, coloured by whether every check was answered, some were not, or none; how it answers now; and the share of checks it answered over 30 days. Up to ten are drawn: those not answering first, then the busiest. |
Below them is what changed lately: releases, changes, new errors and outages, the newest first (What changed). A chart whose figures your role may not read is left out, and the rest of the page is drawn.
What is wrong now
When anything is wrong, the overview says so before anything else. Each app, server or database with a problem is named, worst first, with:
- The problem itself: the reasons its health gives, such as an address that has not answered for twelve minutes or a disk 95% full; each error it had in the last hour, by its message and the line of code it came from; a rise in its server errors; an attack, when its firewall refuses far more requests than usual; and its open incidents.
- Where: the app, or the server and the clusters it is in.
- Since when: when the trouble began, and for each error how often it has happened since it was first seen, or when it came back.
- The way to it: each error opens its story, a server's problem its page, an incident what it holds, and the app its own health.
- What to do next, where a rule knows: roll back a release that went out just before, free space on a disk.
An error is wrong now while it is open and happened in the last hour; an older one is still in the Errors tab. When nothing is wrong, the overview says that too, and when it was last checked.
One app's health
An app's Overview says its health in one line, with See its health beside it. Its page in Health shows what is wrong with it now, then its status:
- Running now: each of its processes, a tile for each copy, running or not. A copy opens what it is using, and one that is not running opens its latest crash.
- The last 24 hours, hour by hour: whether its address answered, its server errors, its crashes, its other errors, and its releases and changes. An hour opens what happened in it.
Then its requests and answer times, its errors by kind with the servers and releases they happened in, what its firewall refused, its memory, its uptime, its open errors, each opening its story, and what changed.
Where errors come from
The Errors tab of Health lists what went wrong in every app you can see, and your servers' own problems, one line for each cause, with the filters to narrow it: by status, by how it was found, by app, by server or cluster, and by the words in it.
| Found as | How | Change to the app |
|---|---|---|
| Crash | A copy of the app stopped when it should keep running. CloudJod restarts it, and first records why: its exit status, the signal that ended it, whether the kernel stopped it for using more memory than its limit, how much memory it used at most, how long it had run, and the last lines it printed, with the stack trace among them when it printed one. | None |
| Printed in logs | A stack trace the app printed and carried on from: a request that failed while the server stayed up. Found in what the app prints, as its logs are stored. | None |
| Sentry SDK | An error the app caught and reported with Sentry's SDK for its language, which also sends the request, the user and what happened before it. | Add the SDK |
| Build, task | A build, a release command or a scheduled job that failed. These already alert as failed deploys and failed tasks; here they are grouped with the times they failed the same way. | None |
| Server | What the agent on one of your own servers saw happen to the machine, and an app it could not start there. See Your own servers. | None |
Stack traces are read as each language prints them: Go's panics, Python's tracebacks, the stacks Node.js prints, Java, Kotlin and other JVM languages, .NET, Ruby, PHP and Rust. A logger that writes one JSON object a line is read too, when the trace is in one of its fields.
One line per cause
- Errors arrive, each with its stack.
- The same cause: the same functions in the same files, in the same order; line numbers are left out, as they move with every edit.
- They fold into one line, counted.
- An error raised somewhere else in the code is a cause of its own.
Two errors are the same cause when the app's own code was in the same place: the same functions in the same files, in the same order. Line numbers are left out, because they move every time the file is edited and the bug does not move with them. Your libraries' frames count only when there are no others. An error with no stack is grouped by its type and message, with numbers, ids and addresses taken out of the message; a crash with no stack is grouped by how it ended: out of memory, a signal, or its exit status.
An SDK can choose the grouping itself with Sentry's fingerprint,
and Sentry's default placeholder in it stands for CloudJod's own.
Errors at a glance
The top of Health's Errors tab, and of each app's Errors tab, draws how many errors there were over the last day, week or month, a column for each hour or day, coloured by kind: crashes, errors the code reported through its SDK, stack traces in the logs, builds and tasks that failed, and problems with your servers. Every time an error happened is counted, not only the times that are kept. Beside the chart, the apps, servers and releases they happened in are ranked, most first, each a link.
Choose a column, with a click, with the arrow keys and Enter, or in the table of numbers under the chart, and the list below keeps the errors that happened in that hour or day, whatever their status. The page's address says which, so it can be sent to someone. Each error in the list has its last day drawn small beside it. An hour is your own hour; a day is a day in UTC.
An error's own page tells its story, from the time it shows, the latest first:
- When it happened: its times, hour by hour while it is under two days old and day by day after, with the app's releases marked on them. Choose a column to see a time it happened then.
- Why, in a sentence first: it ran out of memory (with how much it used of its limit), the status it exited with or the signal that stopped it, or the exception and the line of the app's code that raised it.
- Where: the app, the server, the release and the line of code, each a step on from the one before.
- What happened before: the steps its SDK recorded, oldest first, the request it was answering, and what it printed, ending with the error itself.
Your own servers
Each error says where it happened: on CloudJod's servers, which are shared and never told apart, or on one of your own. Health's Errors tab lists them by server and by cluster, and each cluster's page shows its own. A server where many apps fail, or that has problems of its own, is usually the machine rather than the code.
The agent on a server of your own also says what happened to the machine itself:
- The server restarted, with how long it was not heard from.
- The kernel stopped processes outside your apps for lack of memory: something else on the machine is using what your apps may need. Your apps' own out-of-memory crashes are listed with their apps.
- A disk became read-only, which the kernel does after a disk error.
- CloudJod's agent stopped unexpectedly and was started again.
- An app could not start there, with the reason: listed with the app's errors, once for each reason and again each hour it lasts.
The first four are the server's own, listed with its name and resolved, ignored or muted by whoever can take it out of service. A server going quiet and a disk filling up are told by the server alerts that already exist, and not again here. Servers attached with an agent older than this release report none of these.
Resolving, ignoring, muting
- Resolve an error once its fix is deployed. If it happens again, it reopens by itself, marked Came back, and the team is told.
- Ignore one you will not fix. It keeps counting, and says nothing.
- Mute its alerts for an hour, a day or a week, while somebody works on it.
- Assign it to yourself, so the team knows who has it.
Everybody who can see an app sees its errors. Whoever can deploy it resolves, ignores, mutes and assigns them, and each change is in the audit log.
Alerts
Settings, Notifications chooses where these go, under Errors:
- A new error: an app crashed, printed a stack trace or sent an error it had not had before. Once in fifteen minutes for each app, so a bad deploy's twelve new errors are one alert and a list.
- An error came back: a resolved error happened again. Once an hour for each error.
- A problem on one of your servers, new or back after it was resolved: once in fifteen minutes for each server.
- Server errors rose: in ten minutes, an app answered with at least 50 server errors (5xx), ten times its usual number and at least one request in twenty; and again when they fall back.
- An alert rule crossed its line, and is back within it: once each time, for each of your alert rules.
Each app's Errors tab also draws its server errors and how long it took to answer, hour by hour, as the half and the nineteen in twenty of its requests (p50 and p95).
An app that keeps crashing is also said once, as before, now with the reason it stopped the last time.
Incidents: what went wrong together
One cause is one error, but one outage is often several: a server restarts, two apps on it crash, and their server errors rise. Each new error, error that came back, rise in server errors, alert rule crossing its line and problem of one of your servers joins the open incident about the same app or server, when that had news within the hour, or opens one. An app's error on one of your servers joins that server's incident too, so the machine and what failed on it read as one. A failed build or task is not something going wrong now, and an ignored error says nothing, so neither joins one.
- Organization
- Cluster production
- Server vps-1
- App web
- New errorTypeError: cart.total is not a function
- 5xx roseServer errors far above their usual rate
- Alert rulep95 response time 2,500 ms, above its line of 1,000 ms
NextRelease v43 went out 4 minutes ago: if it is the cause, roll back from Releases.Roll back to v42
- What is wrong now names the open incidents, and the Errors tab lists them first; the Incidents tab lists every one, the newest first.
- An incident shows what it holds, the newest first, each linked to where it is told in full.
- Take it says somebody is on it; Close it when it is over. Whoever can deploy does both, and each is in the audit log.
- CloudJod closes an incident that has had nothing new for two hours, or for a day once somebody has taken it. Anything after that opens a new one.
- An incident about an app is seen by whoever can see the app; one about a server, by the whole organization. What it holds about an app somebody cannot see is left out for them.
Alert rules
New errors and rises in server errors are told about without any setting. A rule is a line of your own: an app slower than you accept, a server's disk nearly full, an app nobody reaches any more. Health, Alert rules lists them and adds one; whoever can change apps sets them.
| Measure | Of | Read as |
|---|---|---|
| Server errors | an app, a server, a cluster, every app | the share of requests answered with a server error (5xx), once 20 requests came in the window |
| p95 response time | an app, a server, a cluster, every app | the milliseconds within which nineteen requests in twenty were answered, once 20 came |
| Requests | an app, a server, a cluster, every app | requests a minute, on average; the one measure that can have a line it must stay above |
| Open errors | an app, a server, a cluster, every app | how many errors are open; for a server or a cluster, those that happened there and its servers' own |
| Processor, memory, disk | a server, a cluster | the percent used, on average over the window; for a cluster, its busiest server |
| Log lines with a phrase | an app | how many of its log lines held the phrase you give, such as payment failed, in any case, over the window; a line holding it twice counts once |
A rule on log lines is counted as CloudJod's servers store the app's logs, so it counts apps that run on them; what your own servers print stays on them. The phrase is plain text, not a pattern: up to 200 characters, matched wherever it appears in a line.
- Each rule is read every minute, over its window: five minutes to a day. A server's or a cluster's requests are those its apps were sent there, all of its servers together.
- The team is told once when a rule crosses its line, where alerts go under Errors, and once when it is back. The crossing joins the incident about the same app or server.
- Too few requests to judge a share or a percentile by is not past the line. A server that says nothing is neither past its line nor back: the rule stays as it was, and the server going quiet is an alert of its own.
- Changing a rule starts it again. An organization has at most 50 rules, and a rule watches only your own servers: CloudJod watches its own.
Safe releases watch errors
A guarded or canary release is watched for its health window, and running is not the whole of healthy. A release that brings an error the app had not had, or answers with far more server errors than it did in the hour before, is put back like one that would not start, and says why.
Reporting from a Sentry SDK
Sentry's SDKs are open source and speak a published protocol, and CloudJod receives it. Each app has a key, and CloudJod sets three variables for it:
| Variable | Value |
|---|---|
SENTRY_DSN | Where the SDK sends errors: CloudJod. |
SENTRY_RELEASE | The release the app runs, so each error is placed against a release. |
SENTRY_ENVIRONMENT | production, or preview for a pull request's environment. |
An app is given its key with its next release, which restarts it anyway, or at
once with Give it a key now in its Errors tab. An app that sets
SENTRY_DSN itself, to send to Sentry or elsewhere, is left alone.
Then add the SDK, and start it:
# Python
import sentry_sdk
sentry_sdk.init() # reads SENTRY_DSN, SENTRY_RELEASE and SENTRY_ENVIRONMENT
// Node.js
const Sentry = require("@sentry/node");
Sentry.init({ dsn: process.env.SENTRY_DSN });
// Go
sentry.Init(sentry.ClientOptions{}) // reads SENTRY_DSN
defer sentry.Flush(2 * time.Second)
The app's Errors tab has the lines for Ruby, PHP, Java, .NET and the browser too, and its DSN to copy. A DSN is not a secret, since a web page carries it: list the sites a browser may send from, and other sites' pages are turned away. A server's requests are never limited by the list.
What the SDK endpoint keeps, and its limits
- Errors, and the text files an SDK attaches to them, up to 32 KiB each. Transactions are kept as traces, and the profiles sent with them as profiles. Sessions, replays, continuous profiles and metrics are not kept, and the SDK is told so, which stops it sending them.
- An app may send 10 errors a second, and 100 at once. Past that, the SDK is told to wait, and does.
- Each plan stores a number of SDK errors a month, for the whole organization with its departments: Free 1,000 a month, Hobby 10,000 a month, Pro 100,000 a month, Enterprise 1,000,000 a month. Crashes and stack traces found in logs are not counted.
- A request is at most 20 MiB, and one error at most 1 MiB. Bodies may be compressed with gzip, deflate or brotli.
Readable JavaScript errors: source maps
Minified JavaScript reports its errors from one long line of code, with its functions named a letter or two. A source map says where each part of a minified file came from. Upload the maps your build makes, and each frame of an error is shown as the code was written: its file, line and function, and the line itself, with where it was in the minified file beneath. Errors are grouped by that code, so the same error from two builds is one error.
Sentry's own tool, sentry-cli, uploads them to CloudJod as it
would to Sentry: point it at CloudJod and give it an API key that may deploy the
app. Sentry's bundler plugins upload through the same tool; give them the same
address, organization, project and key.
export SENTRY_URL=https://api.cloudjod.com
export SENTRY_ORG=your-organization
export SENTRY_PROJECT=your-app
export SENTRY_AUTH_TOKEN=... # an API key that may deploy the app
# after each build, on the folder it writes
npx @sentry/cli sourcemaps inject ./dist
npx @sentry/cli sourcemaps upload ./dist
inject gives each minified file and its map the same debug ID.
Sentry's browser and Node.js SDKs, from 7.47, send it with each error, so a map
is found whatever address its file was served from. Deploy the files
inject changed: the debug ID the SDK sends is read from them, and
their lines are what the map describes.
Without inject, a map is found by the address of the file it maps
and the error's release, so upload with --release naming the
release your SDK sends. CloudJod sets SENTRY_RELEASE to the release
an app runs, which is not known while it is built: for an app CloudJod builds,
use inject. A map uploaded without a release serves any release
that has none of its own. A file is matched by its path whatever host served
it: sentry-cli names dist/assets/index.js
~/assets/index.js, which matches an error from
https://example.com/assets/index.js. Give
--url-prefix when the app serves its files from another path.
Their limits
- An upload may be 64 MiB as sent, one source map 32 MiB, and an upload's maps 256 MiB together.
- An app keeps 256 MiB of maps, and an organization 1 GiB. The app's uploads errors have used least recently make room for its new ones.
- An upload is kept 90 days after an error last used it.
- A map that cannot be read is left out and the rest are kept; the app's Errors tab says which.
- An upload of the same build again sends nothing: CloudJod already has it.
cloudjod sourcemaps web
cloudjod sourcemaps delete web 7f6e5d4c-3b2a-4190-8070-605040302010
Cron and heartbeat monitors
A monitor watches a job that should run on a schedule, and tells you when a run is missed (it did not start within its margin of when it was due), fails, or runs too long. An app's monitors are on its Monitors tab, each with its last runs and how long each took.
A job tells its monitor about each run in one of three ways.
- A scheduled command needs nothing: every scheduled command has a monitor named as it is, and its runs are the monitor's. A run that failed is already told as a task that failed, so its monitor adds the runs that never started.
- A Sentry SDK checks in as it does at Sentry, with the app's DSN. Its first check-in carries the schedule, and the monitor is made from it.
- A heartbeat address: every monitor you add has one. Request it when a run ends well, add
/startas one starts and/failwhen one fails. Anyone holding the address can say the job ran, and nothing else: keep it with your other secrets.
# Python, with the Sentry SDK
from sentry_sdk.crons import monitor
@monitor(monitor_slug="nightly-report",
monitor_config={"schedule": {"type": "crontab", "value": "0 2 * * *"}, "timezone": "Asia/Kathmandu"})
def nightly_report(): ...
// Node.js, with the Sentry SDK
Sentry.withMonitor("nightly-report", runReport, { schedule: { type: "crontab", value: "0 2 * * *" } });
# Any script, over HTTP, with the project and key of the app's DSN
curl "https://api.cloudjod.com/api/PROJECT/cron/nightly-report/KEY/?status=ok"
# Any script, with a monitor's heartbeat address
curl -fsS -m 10 --retry 3 https://api.cloudjod.com/v1/heartbeats/ADDRESS/start
./your-job && curl -fsS -m 10 --retry 3 https://api.cloudjod.com/v1/heartbeats/ADDRESS \
|| curl -fsS -m 10 --retry 3 https://api.cloudjod.com/v1/heartbeats/ADDRESS/fail
A monitor is set with:
| Setting | What it means |
|---|---|
| Schedule | A five-field crontab, read in its time zone, or every so many minutes, hours, days, weeks, months or years after the last run. |
| Margin | How many minutes late a run may start and still be the run that was due. Later than that, the run is missed. Five unless you say. |
| Maximum runtime | How many minutes a started run may take before it has timed out, up to seven days. Thirty unless you say. |
| Thresholds | How many runs in a row must fail before you are told, and how many must end well before you are told the job is back. One each unless you say. |
A monitor expects nothing until its first check-in, as at Sentry, so a job is never missed before it has run once. A paused monitor expects nothing and records nothing; resumed, it expects runs again from its next check-in, so the pause is not counted as missed runs. A scheduled command's monitor follows the command: it is paused while the command is turned off, and goes with it.
You are told once when a job starts failing, as A scheduled job is failing, and once when it is back, as A scheduled job is back, through the channels set up for errors. Both join the incident about the app, beside its errors and its address not answering.
Their limits
- An app may have 50 monitors, its scheduled commands' among them.
- A monitor takes 6 check-ins a minute in each environment, as Sentry does. Past that, the check-in is refused with when to try again.
- Each run's environment and release are kept with it; a monitor has one state across its environments.
- Runs are kept for 90 days.
cloudjod monitors web
cloudjod monitor add web nightly-report --schedule "0 2 * * *" --timezone Asia/Kathmandu
cloudjod monitor set web nightly-report --paused
cloudjod monitor address web nightly-report # a new heartbeat address; the old one stops working
Traces: where a request's time goes
- A request is traced, sent by Sentry's or OpenTelemetry's SDK.
- Each span is a piece of its work: a query, a call to another app, when it began and how long it took.
- The slowest stands out in the waterfall.
- Open a span to see what it was: its operation and the address it used.
A trace is one request or job followed through the app, and through the other apps it calls: each span is a piece of its work, a database query or a call to another service, with when it began and how long it took. Traces arrive at the app's key, the one its errors use, two ways.
From Sentry's SDK. The SDK that sends the app's errors sends traces once it is told what share of requests to trace:
# Python
sentry_sdk.init(traces_sample_rate=0.2) # one request in five
// Node.js
Sentry.init({ dsn: process.env.SENTRY_DSN, tracesSampleRate: 0.2 });
// Go
sentry.Init(sentry.ClientOptions{EnableTracing: true, TracesSampleRate: 0.2})
An error that happens inside a traced request then leads, from its page, to the trace it happened in.
From OpenTelemetry's SDK. Set two variables, the app's project
and key taken from its DSN (https://KEY@HOST/PROJECT); the
app's Traces tab shows them filled in:
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://api.cloudjod.com/api/PROJECT/integration/otlp/v1/traces
OTEL_EXPORTER_OTLP_TRACES_HEADERS=x-cloudjod-key=KEY
Spans may be sent as protobuf, the SDKs' default, or as JSON, compressed or
not. Sentry's own header, x-sentry-auth: sentry sentry_key=KEY, is
accepted too.
What the Traces tab shows
- Each name the app's requests and jobs were sent under, such as
GET /orders/{id}, with how many there were, how many failed, and how long they took: on average, and the times within which half, 95 in 100 and 99 in 100 of them finished. Over the last hour, day or week. - The traces kept: the latest, the slowest and those that failed. One opens as a waterfall: a bar for each span, where and how long it ran within the whole, with the apps of the organization's it passed through. Opening a span shows what it was: its operation, and the address, query or service it used.
- A request failed when it was answered with a server error (5xx), or its span says it failed. A request refused for what it asked, such as a page not found, did not fail.
What is counted, and what is kept
- Every request or job sent is counted, by the hour and by its name, and the counts are kept 31 days. A name that is a raw address becomes a route:
/orders/4411is counted as/orders/{id}, and ids, UUIDs and tokens likewise. - A sample is kept whole, with its spans: each hour, on each of the installation's API servers, the first 120 of each app's, and up to 120 more of those that failed or took a second or more. The rest of a trace a piece of which was kept is kept with it, so a trace across apps is seen whole.
- Each plan keeps a number of traces a month, for the whole organization with its departments: Free 1,000 a month, Hobby 10,000 a month, Pro 100,000 a month, Enterprise 1,000,000 a month. Past it, requests are still counted, and no more are kept until the next month.
- Kept traces stay as long as the plan keeps logs, at most a week.
- Only the span's name, its operation and a few of its attributes are kept: the method, route, path and address of a request, the host it went to and its status, and the kind of database, queue or service. Secrets are removed from them as from errors. Anything else a span carries is not kept.
- An app may send 50 traces a second, and 500 at once; past that, Sentry's SDK is told to wait, and OpenTelemetry's is answered 429 with how long. A trace may hold 1,000 spans, one OTLP request 20,000.
Profiles: which functions the time went to
A trace says which query or call was slow; a profile says which of the app's own functions were running. Sentry's SDK records one for a traced request when profiling is turned on in it, sampling what the request's thread is running about a hundred times a second, and sends it with the trace:
# Python: a share of the traced requests is profiled
sentry_sdk.init(traces_sample_rate=0.2, profiles_sample_rate=1.0)
// Node.js, with @sentry/profiling-node
const { nodeProfilingIntegration } = require("@sentry/profiling-node");
Sentry.init({ dsn: process.env.SENTRY_DSN, integrations: [nodeProfilingIntegration()],
tracesSampleRate: 0.2, profilesSampleRate: 1.0 });
- A trace that has one shows it on its page as a flame graph: top down, each function under the one that called it, as wide as the share of the samples it was on the stack for. A wide bar with nothing beneath it is a function spending the time itself; the app's own functions are coloured, libraries' grey.
- Choosing a name in the Traces tab puts its latest profiles together, up to 30, so one slow function shows across many requests. Beside the graph, the functions that took the most time themselves, and with what they called.
- A profile is kept only with its trace, when the trace was kept, at most 60 an hour for each app on each API server, and as long as traces are. Only the function names and the files they are in are kept, not the values the app was working with.
- Sentry's newer continuous profiling, and OpenTelemetry's profiles, still a draft, are not received.
What is kept, and for how long
- Nothing is stored before secrets are taken out of it. A value whose name says it is a password, token, key, cookie, session or card number is removed, whatever it looks like; and anything that looks like a credential is removed wherever it is: bearer tokens, passwords in connection strings, private keys, card numbers, and the tokens of CloudJod, GitHub, Slack, Stripe, AWS and others.
- A user's IP address, when an SDK sends one, is kept only to its network: the first three parts of an IPv4 address.
- Errors are kept as long as the plan keeps logs: Free 1 day, Hobby 7 days, Pro 30 days, Enterprise 90 days.
- An error that happens many times an hour is counted every time and kept as a sample: twenty times an hour each.
- The counts the charts are drawn from, how many times each error happened in each hour, are kept for 90 days.
- On a server of your own, only why a copy stopped, and what happened to the machine, is sent to CloudJod. What it printed stays on the server, like the rest of its output.
For coding tools
A tool connected in Develop has list_errors, get_error
and update_error: it finds what to fix, reads the stack and the
lines before it, and marks the error resolved when its fix is deployed.
list_errors also narrows to one server or one cluster, and
list_incidents reads what went wrong together.
From the API
curl -H "Authorization: Bearer $CLOUDJOD_TOKEN" \
"https://api.cloudjod.com/v1/orgs/YOUR-ORG/errors?status=open"
GET /v1/orgs/ORG/errors: every app's errors and your servers' own;statusisopen(the default),resolved,ignoredorall, andapp,source,q,server(cloudor a server's id) andclusternarrow it. It also counts them by server and by cluster.GETandPATCH /v1/orgs/ORG/servers/SERVER/errors/ERROR: one of a server's own problems, and resolving, ignoring, muting or assigning it.GET /v1/orgs/ORG/apps/APP/errors, and/errors/ERRORfor one with its latest occurrences, its times over its life (activity) and the release of the latest. A list'strendsare each error's last day, hour by hour, andat(the start of an hour or a day, in RFC 3339) withspan(hour, the default, orday) keeps the errors that happened then.GET /v1/orgs/ORG/errors/activityandGET /v1/orgs/ORG/apps/APP/errors/activity: how many errors there were, of each kind, hour by hour over a day or day by day over arangeofweekormonth, and the apps, servers and releases they happened in. The first takesappandservertoo.GET /v1/orgs/ORG/apps/APP/errors/ERROR/events?from=…&to=…, and/v1/orgs/ORG/servers/SERVER/errors/ERROR/events: the times kept between two times, at most 31 days apart;…/events/EVENTis one of them in full, with its release.PATCH /v1/orgs/ORG/apps/APP/errors/ERRORwithstatus,mute_hoursorassignee.GET /v1/orgs/ORG/apps/APP/errors/rate: requests and server errors per hour.GET,POSTandPUT /v1/orgs/ORG/apps/APP/errors/key, andPOST …/errors/key/rotate: the app's SDK key, its sites, and replacing it, the old key working for a day.GET /v1/orgs/ORG/incidents: the open incidents, or every one withstatus=all.GET /v1/orgs/ORG/incidents/INCIDENTadds what it holds, andPATCHwithstatusacknowledged,resolvedoropentakes, closes or reopens it.GETandPOST /v1/orgs/ORG/alert-rules,PUTandDELETE /v1/orgs/ORG/alert-rules/RULE. A rule has aname; ascopeofapp,server,clusterororg, with theapp,serverorclusterit watches; ametric(error_rate,p95_ms,requests,open_errors,cpu_percent,memory_percent,disk_percent,log_matches); adirection, athreshold,window_minutesandenabled; and, forlog_matchesonly, itspattern, the phrase it counts. Changing one changes its name, line, window, phrase and whether it is on.