Skip to content

Open-source status page, incident response and uptime monitoring

🌐 More guides and seo (#884)

Thibault Le Ouay34c3420d4de9
diff --git a/apps/docs/guides/how-deploy-status-page-cf-pages.mdx b/apps/docs/guides/how-deploy-status-page-cf-pages.mdx
new file mode 100644
index 000000000..950dc2f94
--- /dev/null
+++ b/apps/docs/guides/how-deploy-status-page-cf-pages.mdx
@@ -0,0 +1,112 @@
+---
+title: How to deploy your own status page to Cloudflare Pages
+description: Learn how to use OpenStatus monitoring data and deploy your own Status Page to cloudflare pages.
+---
+
+## Introduction
+
+At OpenStatus, we believe that monitoring your endpoints should be easy and accessible to everyone.
+We also believe that having a status page is essential for your users to know the status of your services.
+We also think that manually updating your status page is a waste of time. The best way to update your status page is to automate it. That's why we built OpenStatus.
+
+In this guide, we will show you how to deploy your own status page to Cloudflare Pages using OpenStatus monitoring data.
+
+For the Status Page, we will use [Astro](https://astro.build/) a new JavaScript web framework, that allows you to build faster websites with less JavaScript.
+
+The code showcased in this guide is available on [GitHub](https://github.com/openstatusHQ/astro-status-page)
+
+
+
+<Frame caption="Astro Status Pages">
+ <img
+ src="/images/guides/how-deploy-status-page-cf-pages/status-page.png"
+ alt="Astro Status Page"
+ />
+</Frame>
+
+
+## Prerequisites
+
+To follow this guide, you need:
+
+- A Cloudflare Account.
+- An [OpenStatus](https://www.openstatus.dev) Account.
+
+## Start monitoring your services
+
+To get your monitoring data, you need to create a monitor on OpenStatus.
+We will monitor the status of your endpoint and get the data to display on your status page.
+
+
+### How to create a monitor
+
+To create a monitor, follow these steps:
+1. Go to the OpenStatus dashboard.
+2. Click on the `Monitors` tab.
+3. Click on the `Create Monitor` button.
+4. Fill in the form with your endpoint details.
+5. Click on the `Create Monitor` button.
+
+
+### Get your OpenStatus API key
+
+To get your API key, follow these steps:
+
+1. Go to the OpenStatus dashboard.
+2. Click on the `Settings` tab.
+3. Click on the `API Token` tab.
+4. Click on the `Create API Key` button.
+5. Copy your API key.
+
+## Deploy your own status page
+
+With OpenStatus monitoring data, you can bring your status page to life. You can really make it your own.
+We are going to deploy a simple status page that shows the status of your endpoint.
+
+For this guide we are going to use our [Astro Status Page](https://github.com/openstatusHQ/astro-status-page) template.
+
+### Customize the Astro Status Page
+
+In the `index.astro` we are fetching the monitor data from OpenStatus and displaying it on the page.
+
+```ts
+const response = await fetch("https://api.openstatus.dev/v1/monitor", {
+ headers: {
+ "x-openstatus-key": env.API_KEY,
+ },
+});
+
+const data = await response.json();
+
+
+const r = monitorsSchema.parse(data);
+
+// our monitors id
+const monitorIds = [1]
+const result = r.filter((m) => monitorIds.find(id => m.id === id) );
+```
+
+In the line `const monitorIds = [1]` you need to replace `1` with the list of monitors id you want to display.
+
+
+### Deploy the Astro Status Page to Cloudflare Pages
+
+First in your Cloudflare dashboard you need to set the environment variable.
+
+Go to your Cloudflare dashboard and click on the `Workers & Pages`.
+
+Select your site and click on the `Settings` tab.
+
+You can add your OpenStatus API key as an environment variable.
+
+```env
+API_KEY=your-api-key
+```
+
+Now you can deploy your Astro Status Page to Cloudflare Pages with the following command:
+
+```bash
+npm run pages:deploy
+```
+
+Your Status Page is now live on Cloudflare Pages. 🎉
\ No newline at end of file
diff --git a/apps/docs/guides/introduction.mdx b/apps/docs/guides/introduction.mdx
index b5ad6da02..90bbcd360 100644
--- a/apps/docs/guides/introduction.mdx
+++ b/apps/docs/guides/introduction.mdx
@@ -6,3 +6,4 @@ Here's some content for the getting started with OpenStatus.
- [How to use OpenStatus to test latency in GitHub Actions](/guides/test-latency-cf-workers-in-github-actions)
+- [Deploy your own Status Page to Cloudflare Pages](/guides/how-deploy-status-page-cf-pages)
\ No newline at end of file
diff --git a/apps/docs/images/guides/how-deploy-status-page-cf-pages/status-page.png b/apps/docs/images/guides/how-deploy-status-page-cf-pages/status-page.png
new file mode 100644
index 000000000..7e31f399d
Binary files /dev/null and b/apps/docs/images/guides/how-deploy-status-page-cf-pages/status-page.png differ
diff --git a/apps/docs/mint.json b/apps/docs/mint.json
index 8d2e9330d..ddac9e143 100644
--- a/apps/docs/mint.json
+++ b/apps/docs/mint.json
@@ -211,7 +211,8 @@
"group": "Guides",
"pages": [
"guides/introduction",
- "guides/test-latency-cf-workers-in-github-actions"
+ "guides/test-latency-cf-workers-in-github-actions",
+ "guides/how-deploy-status-page-cf-pages"
]
}
],
diff --git a/apps/web/public/assets/checker/glauber.png b/apps/web/public/assets/checker/glauber.png
new file mode 100644
index 000000000..bbb0bd144
Binary files /dev/null and b/apps/web/public/assets/checker/glauber.png differ
diff --git a/apps/web/src/app/play/checker/_components/checker-play.tsx b/apps/web/src/app/play/checker/_components/checker-play.tsx
index a2d9b7e4f..89aa9b6f5 100644
--- a/apps/web/src/app/play/checker/_components/checker-play.tsx
+++ b/apps/web/src/app/play/checker/_components/checker-play.tsx
@@ -6,8 +6,8 @@ export default async function CheckerPlay() {
return (
<Shell className="flex flex-col gap-8">
<HeaderPlay
- title="Is your endpoint fast?"
- description="Test the performance of your website, API from the different continents."
+ title="Is your endpoint globally fast?"
+ description="Test your website and API performance across all continents. "
/>
<div className="mx-auto grid w-full max-w-xl gap-6">
<CheckerForm />
diff --git a/apps/web/src/app/play/checker/_components/global-monitoring.tsx b/apps/web/src/app/play/checker/_components/global-monitoring.tsx
new file mode 100644
index 000000000..e064b3568
--- /dev/null
+++ b/apps/web/src/app/play/checker/_components/global-monitoring.tsx
@@ -0,0 +1,60 @@
+import Link from "next/link";
+
+import { Button } from "@openstatus/ui";
+
+import {
+ CardContainer,
+ CardFeature,
+ CardFeatureContainer,
+ CardIcon,
+ CardContent,
+ CardHeader,
+ CardTitle,
+} from "@/components/marketing/card";
+import { Globe } from "@/components/marketing/monitor/globe";
+import type { ValidIcon } from "@/components/icons";
+import { Shell } from "@/components/dashboard/shell";
+
+const features: {
+ icon: ValidIcon;
+ catchline: string;
+ description: string;
+}[] = [
+ {
+ icon: "globe",
+ catchline: "Latency Monitoring.",
+ description:
+ "Monitor the latency of your endpoints from all over the world. We support 35 regions.",
+ },
+ {
+ icon: "play",
+ catchline: "Monitor anything.",
+ description:
+ "We can monitor your website, API, DNS, TCP or any other service you have running. ",
+ },
+ {
+ icon: "bot",
+ catchline: "Synthetic Monitoring.",
+ description: "Run your tests in your CI/CD pipeline, or on a schedule. ",
+ },
+];
+export const GlobalMonitoring = () => {
+ return (
+ <Shell className="mx-auto">
+ <CardHeader>
+ <CardIcon icon={"activity"} />
+ <CardTitle>Start monitoring your services</CardTitle>
+ </CardHeader>
+ <>
+ <div className="mt-12">
+ <div className="list-none space-y-4">
+ {features?.map((feature, i) => (
+ // biome-ignore lint/suspicious/noArrayIndexKey: <explanation>
+ <CardFeature key={i} {...feature} />
+ ))}
+ </div>
+ </div>
+ </>
+ </Shell>
+ );
+};
diff --git a/apps/web/src/app/play/checker/_components/testimonial.tsx b/apps/web/src/app/play/checker/_components/testimonial.tsx
new file mode 100644
index 000000000..e4b177379
--- /dev/null
+++ b/apps/web/src/app/play/checker/_components/testimonial.tsx
@@ -0,0 +1,27 @@
+import { Shell } from "@/components/dashboard/shell";
+
+export const Testimonial = () => {
+ return (
+ <div className="mx-auto max-w-2xl lg:max-w-4xl">
+ <figure className="mt-10">
+ <blockquote className="text-center font-semibold text-2xl leading-8 sm:text-2xl sm:leading-9">
+ <p>“Just don't give up on your users”</p>
+ </blockquote>
+ <figcaption className="mt-10">
+ <div className="mt-4 flex items-center justify-center space-x-3 text-base">
+ <div>
+ <div className="font-semibold">Glauber Costa</div>
+
+ <div className="text-muted-foreground">CEO of Turso</div>
+ </div>
+ <img
+ className="h-10 w-10 rounded-full"
+ src="/assets/checker/glauber.png"
+ alt=""
+ />
+ </div>
+ </figcaption>
+ </figure>
+ </div>
+ );
+};
diff --git a/apps/web/src/app/play/checker/page.tsx b/apps/web/src/app/play/checker/page.tsx
index c7d89746b..13aae8ca5 100644
--- a/apps/web/src/app/play/checker/page.tsx
+++ b/apps/web/src/app/play/checker/page.tsx
@@ -2,6 +2,9 @@ import type { Metadata } from "next";
import { BackButton } from "@/components/layout/back-button";
import CheckerPlay from "./_components/checker-play";
+import { Testimonial } from "./_components/testimonial";
+import { BottomCTA } from "@/components/marketing/in-between-cta";
+import { GlobalMonitoring } from "./_components/global-monitoring";
export const metadata: Metadata = {
title: "Speed Checker",
@@ -17,8 +20,17 @@ export const metadata: Metadata = {
export default async function PlayPage() {
return (
<>
- <BackButton href="/" />
- <CheckerPlay />
+ <div className="mx-auto space-y-12">
+ <div className="mt-12">
+ <BackButton href="/" />
+ <CheckerPlay />
+ </div>
+ <Testimonial />
+ <GlobalMonitoring />
+ <div className="mx-auto max-w-2xl lg:max-w-4xl">
+ <BottomCTA />
+ </div>
+ </div>
</>
);
}
diff --git a/apps/web/src/components/marketing/in-between-cta.tsx b/apps/web/src/components/marketing/in-between-cta.tsx
index 86bccfee0..937dc6421 100644
--- a/apps/web/src/components/marketing/in-between-cta.tsx
+++ b/apps/web/src/components/marketing/in-between-cta.tsx
@@ -48,7 +48,7 @@ export function MiddleCTA() {
export function BottomCTA() {
return (
<InBetweenCTA
- description="Learn over time how your services are performing, and inform your users when there are issues."
+ description="Learn how your services are performing over time, and notify your users of any issues."
actions={{
primary: { label: "Start for Free", href: "/app/login" },
secondary: { label: "Schedule a Demo", href: "/cal", target: "_blank" },
diff --git a/apps/web/src/components/marketing/monitor/globe.tsx b/apps/web/src/components/marketing/monitor/globe.tsx
index 7ad2a178b..32be80633 100644
--- a/apps/web/src/components/marketing/monitor/globe.tsx
+++ b/apps/web/src/components/marketing/monitor/globe.tsx
@@ -19,7 +19,7 @@ function isWebGLContext() {
export function Globe() {
const canvasRef = useRef<HTMLCanvasElement>(null);
const prefersReducedMotion = useMediaQuery(
- "(prefers-reduced-motion: reduce)",
+ "(prefers-reduced-motion: reduce)"
);
const [disabledWebGL, setDisabledWebGL] = useState(false);
@@ -58,6 +58,58 @@ export function Globe() {
{ location: [-33.8688, 151.2093], size: 0.05 },
// GRU
{ location: [-23.5558, -46.6396], size: 0.05 },
+ // ARN
+ { location: [59.6519, 17.9186], size: 0.05 },
+ // ATL
+ { location: [33.6407, -84.4277], size: 0.05 },
+ // BOG
+ { location: [4.711, -74.0721], size: 0.05 },
+ // BOM
+ { location: [19.0896, 72.8656], size: 0.05 },
+ // CDG
+ { location: [49.0097, 2.5479], size: 0.05 },
+ // DEN
+ { location: [39.8561, -104.6737], size: 0.05 },
+ // DFW
+ { location: [32.8998, -97.0403], size: 0.05 },
+ // EWR
+ { location: [40.6895, -74.1745], size: 0.05 },
+ // EZE
+ { location: [-34.8226, -58.5336], size: 0.05 },
+ // FRA
+ { location: [50.0349, 8.5622], size: 0.05 },
+ // GDI
+ { location: [20.6752, -103.34], size: 0.05 },
+ // LAX
+ { location: [33.9416, -118.4085], size: 0.05 },
+ // MAD
+ { location: [40.4168, -3.7038], size: 0.05 },
+ // MIA
+ { location: [25.7617, -80.1918], size: 0.05 },
+ // NRT
+ { location: [35.6895, 139.6917], size: 0.05 },
+ // ORD
+ { location: [41.9742, -87.9073], size: 0.05 },
+ // OTP
+ { location: [44.4268, 26.1025], size: 0.05 },
+ // PHX
+ { location: [33.4484, -112.074], size: 0.05 },
+ // QRO
+ { location: [20.5881, -100.3899], size: 0.05 },
+ // SCL
+ { location: [-33.4489, -70.6693], size: 0.05 },
+ // SEA
+ { location: [47.6062, -122.3321], size: 0.05 },
+ // SIN
+ { location: [1.3521, 103.8198], size: 0.05 },
+ // SJC
+ { location: [37.3541, -121.9552], size: 0.05 },
+ // WAW
+ { location: [52.2297, 21.0122], size: 0.05 },
+ // YUL
+ { location: [45.5017, -73.5673], size: 0.05 },
+ // YYZ
+ { location: [43.6511, -79.347], size: 0.05 },
],
onRender: (state) => {
// Called on every animation frame.