Skip to main content

Monitors

HTTP/HTTPS Monitoring

Guide to HTTP and HTTPS monitoring in Pingara: methods, expected status codes, custom headers, keyword checks, SSL certificate tracking and redirects.

8 min readUpdated November 23, 2026

httphttpsmonitoringsslkeywordsstatus-codesdomain-expiry

HTTP/HTTPS monitoring is Pingara's most powerful feature, providing deep visibility into your web services' availability and performance.

What Gets Monitored

Every HTTP check captures detailed performance breakdown:

  • DNS lookup time - How long to resolve your hostname to an IP
  • TCP connect time - Network latency to establish connection
  • TLS handshake time - SSL/TLS negotiation (HTTPS only)
  • Time to first byte (TTFB) - How long until the server starts responding
  • Total duration - Full request/response cycle
  • Response size - Bytes transferred
  • Status code - HTTP response code (200, 404, 500, etc.)
  • SSL certificate - Days until expiry (HTTPS only)

This granular data helps pinpoint exactly where slowdowns occur.

HTTP Methods

GET (Default)

Standard method for fetching resources.

Use for:

  • Web pages
  • APIs returning data
  • Health check endpoints

Example:

GET https://api.example.com/status

Identical to GET but only fetches headers (no response body).

Use for:

  • Large files (you only care about availability)
  • Faster checks (saves bandwidth)
  • Server availability tests

Example:

HEAD https://cdn.example.com/large-video.mp4

Performance: 10-100x faster than GET for large responses.

POST

Submits data to the server.

Use for:

  • APIs requiring POST requests
  • Form submissions
  • Webhooks

Example:

POST https://api.example.com/webhook
Content-Type: application/json
{"event": "health_check"}

Note: Custom headers and request body are configurable on every plan.

Expected Status Codes

Define which HTTP status codes indicate success.

The list every dashboard-created monitor gets

200,201,202,203,204,301,302

That covers the 2xx codes an HTTP endpoint realistically returns plus the two most common redirect codes. It is a list, not a range, so the rarer 2xx codes (205, 206, 207, 208, 226) are not in it, and neither is 304.

Both the Add monitor form and the Edit monitor form let you set this directly, under Expected status codes. Enter individual three-digit codes, comma-separated, for example 200, 301, 401, and the check passes when the response carries one of them; ranges aren't accepted. The monitor detail page shows the stored list under Configuration → Expected status codes. The v1 Developer API returns it, and a write-scoped key (a Pro feature) can set it on POST and PATCH /monitors.

The list above is the dashboard's, not a platform floor: the platform-wide default of 200–399, covering any success or redirect code, applies only to a monitor created without the field at all, which no UI or API path does today. An operator changing it in the Ops Console is what moves it.

What Happens on Mismatch

If the server returns a code NOT in your list:

  1. Check is marked as failed
  2. Consecutive failure counter increments
  3. After 2 failures, incident is created
  4. Alerts fire

Tip: Enable "Follow redirects" instead of adding 301/302 to expected codes. This monitors the final destination, not the redirect.

Keyword Checks

Check the response body for a specific string.

Why Use a Keyword Check?

Detects "silent failures":

  • ✅ Server returns 200 OK
  • ❌ Page shows error message
  • ❌ Database connection failed
  • ❌ Wrong version deployed

Configuration

API health check:

Keyword: "status":"healthy"

Web page rendering:

Keyword: Welcome to My Site

Version verification:

Keyword: v2.1.0

How It Works

  1. Pingara fetches your URL
  2. Receives 200 OK (or other expected code)
  3. Searches response body for keyword
  4. Marks the check failed if the text is missing (or, in must NOT contain mode, if it is present)

A HEAD request returns no body, so a keyword check cannot be used with one. Pingara refuses that combination when you save the monitor rather than letting it report down forever.

Pingara reads up to 1 MB of the response. If your keyword sits further down a larger page, the check reports Keyword unverified rather than a failure. We won't claim the keyword is gone when we didn't read that far. Put the keyword near the top of the page, or point the monitor at a smaller endpoint.

Match Modes

A keyword check runs in one of two directions:

  • Response must contain - the check fails when the text is missing. Use it to confirm a page actually rendered: an order confirmation, a health string, a version number.
  • Response must NOT contain - the check fails when the text appears. Use it to catch a page that serves an error inside a successful response: Internal Server Error, Database connection failed, Account suspended. A status-code check cannot see any of those, because the page returns 200.

Matching is an exact substring test either way. It is not a pattern or a regular expression.

Case Sensitivity

Keywords are case-sensitive by default:

  • ✅ "status":"healthy"
  • ❌ "status":"Healthy" (won't match)

Turn Match case off to accept any capitalisation. Leave it on for API responses, where the exact casing is part of the contract.

When the Check Fails

Choose what a failed keyword check does to the monitor:

  • Mark degraded (default for new monitors) - you get an alert, but the check still counts as a success for uptime, Apdex and your SLA.
  • Mark down - the check counts as a failure, exactly like a timeout or a bad status code.

Degraded is usually right for page content. A keyword check reads the raw HTML, not the rendered page, so it can differ between visitors without anything being broken: an A/B test, a cookie banner, a translated page, a CDN cache variant, or an apostrophe encoded as '. Any of those failing your monitor would take your published uptime figure with it.

Mark down is right for a health endpoint. If /health stops returning "status":"healthy", that genuinely is an outage.

Monitors created before this setting existed are set to Mark down, which is how they have always behaved. Change it on the monitor's edit page.

Best Practices

Match a literal string for APIs:

"status":"ok"

(The check does not parse JSON. It looks for this exact text in the response, so match the characters as the API prints them, spacing included.)

Use unique text for pages:

Order confirmed

(Not just "Welcome" which might appear on error pages)

Don't use a secret as a keyword. Pick text that is safe to name in an alert: a heading, a status string, a version number. Avoid session tokens, API keys, account numbers, or anything that only appears for a signed-in user. Pingara never puts your keyword into an alert, but a keyword is a monitor setting rather than a credential store. It is visible to everyone in your organisation and is sent to the monitoring probes in order to be matched.

Match text that is stable. Keyword matching is an exact substring test against the raw response body, so it sees the HTML, not the rendered page. Text containing an apostrophe or a quote may be encoded in the source (Tom's rather than Tom's), and text that changes with A/B tests, personalisation, or translation will match in some regions and not others.

Test keywords manually:

curl https://your-url.com | grep "your-keyword"

Empty-body check

A page can answer 200 OK with nothing in it. A deploy that ships an empty template, a proxy that swallows the response, or an API that returns no data all look healthy to a status-code check. The empty-body check catches them by failing a check whose response body is smaller than a minimum you set.

It is available on every plan and off by default. It applies to HTTP monitors that use any method except HEAD, because a HEAD response has no body by definition. Pingara refuses to save the setting on a HEAD or non-HTTP monitor.

To turn it on, set a minimum response body between 1 and 1,048,576 bytes. A check whose body is smaller than that fails. Pingara counts the bytes of the body it read, exactly as the Response size of the check shows them, and does not trim whitespace, so a body of three spaces is three bytes.

When it is evaluated

The check runs only when the response gives it something fair to measure. It is not evaluated when:

  • the status code is not one of your expected codes (the status-code failure is reported instead);
  • the status is 204 or 205, which mean "no content" by definition;
  • the status is a redirect (3xx) or anything else outside 2xx;
  • the check failed at the network level, such as a timeout or a refused connection;
  • the body was cut off at the 1 MB read limit, or could not be read.

A body that was cut off at the limit has plainly got content, so it cannot be too small.

When the check fails

Choose what a failed empty-body check does, the same two options a keyword check offers:

  • Mark down - the check counts as a failure, exactly like a timeout or a bad status code.
  • Mark degraded - you get an alert, but the check still counts as a success for uptime, Apdex and your SLA.

If a keyword check and the empty-body check both fail on the same response, the alert reports the empty body, because a missing keyword is its consequence. The check result shows the error type BODY TOO SMALL and a message such as 200 OK but body was 0 bytes.

Choosing a minimum

Pick a number comfortably below the smallest healthy response. Compare the Response size of a few recent healthy checks, then set the minimum well under it. A JSON endpoint that legitimately returns nothing when idle is a poor fit for this check, which is why it is off until you ask for it.

Broken-page detection

Pro plan, opt-in. Broken-page detection is available on the Pro plan and applies only to monitors that opt in. Once Pingara has learned a page, a confirmed finding in enough regions produces an up but broken alert.

A page can answer 200 OK and still be broken for visitors. Broken-page detection learns what your page normally looks like, region by region, and notices when it stops looking that way. It looks for:

  • an error page or a maintenance page served with a good status code;
  • the page redirecting visitors to a sign-in page;
  • the page's main script or stylesheet failing to load;
  • most of the page's content disappearing;
  • key parts of the page's structure going missing, which is a lower-confidence signal;
  • a "page not found" page that has lost most of your page's text, when its main heading and its explanation both say the page does not exist (one that keeps all your content is held for review, see below);
  • a page that sends visitors to a sign-in page with a meta refresh, which reads as a login redirect.

It applies to HTTP monitors that use the GET method, and it needs checks to learn the page before it can judge it. A response that is simply too small is the job of the empty-body check, which is a separate setting, works on every plan and does not wait for anything to be learned. Detection is built to tell a broken page from a changed one, but a large redesign can still look like lost content or missing structure. When a finding is a deliberate change, you can mark it as fine and Pingara relearns the page.

A confirmed finding is an up but broken alert. Alerts start only after Pingara has learned the page in a region, which takes at least 12 healthy checks spread over at least an hour. A region then has to see the broken page on several checks in a row, set by the monitor's Consecutive slow checks (3 by default). Missing structure needs two more checks before that count starts. It needs the same regional agreement as a down alert, and it does not open a second incident while one is already open. Its email subject is [Pingara] Up but broken: <monitor name> - <monitor address>, which differs from every other alert subject, see Alert Channels. Webhooks carry a verdict with code: "up_but_broken", see The verdict field.

What counts as a "page not found" page

A page whose title says "page not found" is noticed on that alone. A "page not found" page that replaced your content is noticed when all four of these hold: the first main heading says something like "page not found" or "404 not found", the page's text also carries an explanation such as "this page doesn't exist", Pingara had not seen either phrase on the page when it learned it, and the page now has fewer than half the text it normally has. A soft 404 that keeps your full layout and amount of text does not raise a finding. It is held for review on the Verdict page instead, and nobody is alerted, so a blog post titled "Page not found in last week's log" or an article about designing a 404 page does not look broken. The cost is that a full-size soft 404 is not alerted on. The bare words "404" and "not found" are never enough, because they appear in prices, counts and how-to articles.

Sign-in redirects

When a page answers 200 and sends visitors to a sign-in page with a meta refresh tag, and it has fewer than a fifth of the text it normally has, Pingara reads it as a redirect to a sign-in page. A page that has always been a tiny refresh to a sign-in page learns that size and never raises this finding. A redirect written in a script, such as location.replace, is not read: that page is judged on its content, and a page that has lost most of its content still reads as content lost.

Changes that are held for review

Pingara does not learn every change on its own. It holds a change, and does not learn it, in three cases:

  • A large shrink. The page's size or amount of text fell below 70 percent of what Pingara learned. A page that got much smaller is not accepted as the new normal automatically, because that is how a half-empty page would become normal. Growth is never held.
  • A shrink in steps. The page got smaller in several steps, each small enough to be learned on its own, and is now below 70 percent of its size or amount of text when Pingara last learned it. Relearning the page sets a new starting point.
  • A new error phrase. The page now shows an error, maintenance or "page not found" phrase it did not show when Pingara learned it.

A held change is not an alert. It never opens an incident and nobody is notified because of it. It shows for as long as the probe still holds it, and stops showing about 75 minutes after the probe stops re-sending it, for example once the page has been back to normal for six checks. Pingara keeps comparing later successful HTML checks with what it learned before. The Verdict page shows the held change under Waiting for review with the reason, and Relearn now accepts it when the change is expected, for example after a sale ends and the page is genuinely shorter.

Pages whose words change often

Pingara compares a page's title, size, structure and assets, not its wording. A page whose title, size, landmarks and assets stay inside the learned ranges is a match however often its words change: a blog or news page with new headlines and text every day is never auto-accepted and never alerts on that churn. The exception is a copy change that brings in an error, maintenance or "page not found" phrase, which is noticed and held as described above.

Asset failures lag by one check

A script or stylesheet that fails to load is reported at the check after the one that sees it, and it is cleared at the check after the asset recovers. Pingara tests assets in the background so that asset speed never slows the check itself. A monitor can therefore show a broken asset for one more check after you fix it, and the incident then resolves after two clean checks as usual. A successful fetch replaces the failing result, so nothing stale survives it. Only an inconclusive answer, such as a rate limit or a timeout, leaves the earlier state in place.

The Verdict page

Pro plan. The Verdict page is part of broken-page detection, so it is a Pro feature. It shows what Pingara has learned about each page. Once enough regions have learned a page, Pingara alerts you if the page loads but breaks.

Verdict is a page in the app, in the Monitoring group of the sidebar directly under Monitors. It shows the monitors that have broken-page detection on, and what Pingara has learned about each one's page. The sidebar item appears on Pro. On a Free plan you can open the page by its address and it explains that broken-page detection is a Pro feature. It is not the same thing as the verdict line at the top of an alert, which is a single sentence about one incident.

Every member of the organization can open it. Turning detection on for a monitor still happens in the monitor's form, and the page has no switch of its own.

The list

Each monitor with detection on is a card with its name, its address, its status, a small diagram of what Pingara learned and a line such as Watching 4 of 4 or Learning 2 of 4, 7 of 12 checks. A paused monitor says it is paused, because no checks are arriving. A strip above the cards counts the pages learned and the regions watching and learning. The list shows the first 64 monitors and says so when there are more. If no monitor has detection on, the page says so and links to Monitors.

One monitor's page

Open a card to see the monitor's page in detail. The same view is open to you in the live demo with sample data.

  • The verdict panel. One sentence about where the page stands, with the number of regions that learned the same shape, when it was learned, the last change and the check interval.
  • Page anatomy. A diagram drawn only from what Pingara learned: navigation, main content and footer bands, heading bars, links, forms, fields, buttons and images. Parts present in every learned check are drawn solid. Parts not in every learned check are dashed and muted. A region selector switches between regions, and a text list under the diagram says the same in words. It is a diagram of what Pingara learned, not a picture of your page, and your page's text is not in it apart from the title.
  • Regions. Each region is Learning, Watching, Waiting for review or Limited coverage, in words and never as a status colour, because watching means a page has been learned, not that it is fine. Learning takes 12 successful checks over at least an hour, so a region with 12 checks can still be learning until the hour is up. A page that builds itself in the browser has Limited coverage, because the server's reply holds little to compare.
  • Body size. The size of each response over the last 24 hours, for the region the diagram shows, with two dashed lines at the smallest and largest size Pingara learned there. Failed checks and redirects are gaps in the line, not drops. Body size is one of the things Pingara compares, and a check below the learned range is not on its own a broken page.
  • Waiting for review. When a region held a change instead of learning it, the region reads Waiting for review here and on the monitor's Page shape card (which links to this page), and this says why, once per reason, with the regions that hold it. A held change is not an alert. See Changes that are held for review.
  • Change history. Each region's most recent change: Learned the page, Accepted a change automatically or Relearned it. Pingara keeps only the latest change per region, so this is not a full log.

Members who can manage monitors also see Relearn now, which resets what every region learned and starts again. Use it after a redesign.

What Pingara learns and keeps

Pingara learns the page title, the size of the page and the amount of text, how many headings, links, forms, fields, buttons and images it has, whether it has navigation, main content and a footer, and the first two scripts and the first stylesheet the page loads from your own site. It looks for an error page or a maintenance page served with a good status code, the page redirecting to a sign-in page, one of those scripts or that stylesheet failing to load, most of the content disappearing, and several parts the page always had going missing while the page shrinks to under half its size. A change to the title, a heading or a link on its own is not treated as a broken page.

Of your page's text, Pingara keeps only the title. It also keeps the address the page ends up on, the addresses of the scripts and stylesheet it learned, which of a fixed list of error and maintenance phrases it has seen there, and counts.

How alerts reach you

A page that loads but breaks produces an up but broken alert, described in the section above. A change that is held as Waiting for review is never an alert. These alerts go out through the Slow response / degraded alert setting, the same one a slow monitor uses. They stop for a monitor only when it is covered by at least one enabled alert policy and every one of those policies has Slow response / degraded turned off. A member's own Slow response / degraded alerts setting applies only to alerts sent to that member personally: a channel on an alert policy gets them whatever any member has chosen.

If you downgrade

Downgrading to Free turns detection off and removes what was learned. The Verdict page then shows the Free plan message, the sidebar item goes away, and an open detail page shows detection as off. Upgrading again does not turn it back on, so turn it on again in each monitor's form.

Domain Expiry Monitoring

A lapsed domain is the outage nothing else here catches early. An expired certificate fails a handshake, so the monitor goes down and you get paged. An expired domain produces no such signal: resolvers keep serving cached answers for a while, and then the website, the email and the API stop at once.

Turn it on for any monitor by choosing warning thresholds from 90, 60, 30, 14, 7 or 1 day. It is off by default, because each enabled monitor means Pingara asks that domain's registry once a day.

It is not tied to monitor type. A ping monitor on db.example.com stops working when example.com lapses exactly as an HTTP one does.

What You Get

A notification, not an incident, just like certificate expiry. Your uptime, Apdex and SLA figures are untouched, because a domain expiring in 30 days is a scheduled administrative task rather than an outage.

Each threshold alerts once. Renewing the domain re-arms all of them, so next year's warnings fire normally.

An already-lapsed domain still alerts, unlike an already-expired certificate. There is no failed handshake to notice, so this may be the only warning you get. Renew it immediately: after a grace period a lapsed domain enters redemption, which costs considerably more to recover, and after that anyone can register it.

When Pingara Stays Quiet

Not every top-level domain publishes registration data, and some registries answer with nothing usable. Pingara treats that as we could not find out and says nothing, rather than reporting a problem with a domain that is perfectly healthy.

Practical Notes

  • Most lapsed domains lapse because auto-renew was off, or the card on file expired. Both are worth checking when the first warning arrives.
  • Changing a monitor's URL clears its stored registration data, so the new domain is looked up fresh on the next daily run.

SSL Certificate Monitoring

For HTTPS URLs, Pingara automatically tracks SSL certificate expiry.

Default Warnings

Alerts fire at:

  • 30 days before expiry
  • 14 days before expiry
  • 7 days before expiry

How It Works

Every check:

  1. Pingara extracts the SSL certificate
  2. Reads the "Valid Until" date
  3. Calculates days remaining
  4. Triggers alert if threshold crossed

Customizing Thresholds

Add more urgent reminders in monitor settings:

30, 14, 7, 3, 1

Now you'll also be alerted at 3 days and 1 day before expiry.

Milestone-Based Alerting

Pingara sends one alert per threshold:

  • Day 30 → First alert
  • Day 14 → Second alert
  • Day 7 → Final alert

You won't receive repeated alerts at the same threshold.

What Triggers SSL Alerts

The expiry reminder is sent when a certificate is approaching the end of its validity, at the thresholds above. Your alert policy's SSL certificate expiry setting controls this reminder and nothing else.

A certificate that already fails verification is different: one that has expired, is not valid yet, was issued for another host name, is self-signed, or comes from an issuer Pingara cannot trust (which includes a server that does not send its intermediate certificate). It fails the check. Once the failures are confirmed, the same way as for any other outage, the monitor goes down and a down incident opens. Its alert follows your Down settings, not the SSL certificate expiry setting, and like any down alert it is held during a maintenance window that suppresses alerts, then sent if the monitor is still down when the window ends.

Redirect Handling

Follow Redirects (Default: Enabled)

When enabled, Pingara:

  1. Follows up to 10 redirects (configurable)
  2. Validates the final destination
  3. Includes redirect hops in total duration

Example flow:

http://example.com 
  → 301 → https://example.com
  → 301 → https://www.example.com
  → 200 OK

Final check validates https://www.example.com.

When to Disable

Monitor the redirect itself:

Expected Codes: 301
Follow Redirects: Off

Detect redirect loops: If your site has broken redirects, disabling follow helps diagnose chains.

Max Redirects

Default: 10

Increase if your app has long redirect chains (rare).

Timeout Configuration

Maximum wait time before marking check as failed.

Default: 30 seconds

Good for most websites.

When to Adjust

Slow backends (increase timeout):

Timeout: 45-60 seconds

Fast APIs (decrease timeout):

Timeout: 10-20 seconds

Why decrease? Faster failure detection. If your API normally responds in <1s, a 30s timeout delays incident creation.

What Counts as Timeout

If total duration exceeds timeout:

  • Check marked as failed
  • Error type: timeout
  • Incident created after 2 consecutive timeouts

Timeout vs Degraded

Timeout - Hard failure threshold (check fails). Degraded - A separate raw-latency rule (check succeeds, but the response took too long). It defaults to firing at 4× your Apdex threshold, but it's its own configurable setting. See Apdex Scoring for how the two relate. Apdex itself never triggers a status change; it's computed only for reporting.

Example:

  • Timeout: 30s
  • Apdex threshold (T): 500ms → Degraded defaults to firing above 2000ms
  • Response: 2s → Check succeeds, but counts toward the Degraded rule

Custom Headers

Send custom HTTP headers with your requests.

Use Cases

Authentication:

Authorization: Bearer abc123token

API versioning:

Accept: application/vnd.api+json;version=2

Custom user agent:

User-Agent: Pingara-Monitor/1.0

Format

One header per line:

Header-Name: value
Another-Header: another-value

Redirects to another origin

When "Follow redirects" is on, Pingara sends your custom headers and request body only while a hop stays on the origin you configured (same scheme, host and port), or is an upgrade from http to https on the same host and the same port (both default ports, or the same explicit port number). Any other hop drops all of your custom headers, including Authorization and Cookie, and the request body, and they stay dropped for every hop after it, even if a later hop returns to the original origin. A POST keeps its method and goes out with an empty body. Pingara's own User-Agent is still sent. A monitor that relied on a header or body reaching a redirect target on another origin sees that target respond without it.

Security Warning

Never include:

  • ❌ Production API keys (use test/monitor-specific keys)
  • ❌ User credentials
  • ❌ Session tokens

Create dedicated monitoring credentials with minimal permissions.

Request Body (POST Only)

Send data with POST requests.

JSON Payload

{
  "event": "health_check",
  "timestamp": "2024-01-15T00:00:00Z"
}

Form Data

field1=value1&field2=value2

Set appropriate Content-Type header:

  • application/json for JSON
  • application/x-www-form-urlencoded for forms

Performance Metrics Explained

DNS Lookup Time

Time to resolve hostname → IP address.

Normal: 10-50ms High: >200ms → DNS server slow or misconfigured

TCP Connect Time

Network latency to establish connection.

Normal: 10-100ms (depends on distance) High: >500ms → Network congestion or server overload

TLS Handshake Time

SSL/TLS negotiation (HTTPS only).

Normal: 50-200ms High: >500ms → Weak cipher suites or CPU bottleneck

Time to First Byte (TTFB)

Time until server starts responding.

Normal: 100-500ms High: >1000ms → Slow backend processing

TTFB includes:

  • Server processing time
  • Database queries
  • API calls
  • Caching lookups

Total Duration

Full request/response cycle (sum of all above + transfer time).

Goal: Keep under Apdex threshold for good user experience.

Troubleshooting

"Connection refused"

Server is down or firewall blocking.

"DNS lookup failed"

Hostname doesn't resolve. Check domain configuration.

"SSL certificate invalid"

Expired, self-signed, or wrong hostname.

"Timeout"

Server took too long. Increase timeout or optimize backend.

"Keyword not found"

Response doesn't contain expected text. Check case sensitivity.

"Unexpected status code"

Server returned code not in expected list. Update expected codes or fix server.

Next Steps

Related Articles

Getting Started8 min

Creating Your First Monitor

Step-by-step guide to your first uptime monitor in Pingara: URL format, check intervals, regions, status codes, keyword checks and SSL tracking.

Monitors7 min

Monitor Intervals and Regions

Learn about check intervals, monitoring regions and multi-region strategies in Pingara, including plan limits, quorum rules and how to plan your coverage.

Monitors6 min

Apdex Scoring

Understand Apdex scoring in Pingara: how it measures user satisfaction, how to set the T threshold, read scores and spot performance degradation.