vibecarbon 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +663 -0
- package/README.md +188 -0
- package/carbon/.claude/hooks/task-completed-gate.sh +19 -0
- package/carbon/.claude/hooks/teammate-idle-gate.sh +29 -0
- package/carbon/.claude/settings.json +29 -0
- package/carbon/.cursor/rules/vibecarbon.mdc +6 -0
- package/carbon/.dockerignore +57 -0
- package/carbon/.env.example +219 -0
- package/carbon/.github/copilot-instructions.md +3 -0
- package/carbon/.github/workflows/deploy.yml +346 -0
- package/carbon/.github/workflows/vibecarbon-build.yml +81 -0
- package/carbon/.windsurfrules +74 -0
- package/carbon/AGENTS.md +422 -0
- package/carbon/CLAUDE.md +3 -0
- package/carbon/DEVELOPMENT.md +187 -0
- package/carbon/Dockerfile +98 -0
- package/carbon/LICENSE +21 -0
- package/carbon/PRODUCTION.md +364 -0
- package/carbon/README.md +193 -0
- package/carbon/TESTING.md +138 -0
- package/carbon/backup/Dockerfile +75 -0
- package/carbon/backup/backup.sh +95 -0
- package/carbon/backup/compose-backup.sh +140 -0
- package/carbon/biome.json +83 -0
- package/carbon/cloud-init/docker-ce-setup.yaml +55 -0
- package/carbon/cloud-init/k3s/master-init.sh +215 -0
- package/carbon/cloud-init/k3s/supabase-init.sh +167 -0
- package/carbon/cloud-init/k3s/worker-init.sh +147 -0
- package/carbon/components.json +24 -0
- package/carbon/content/blog/authentication-guide.mdx +34 -0
- package/carbon/content/blog/getting-started.mdx +41 -0
- package/carbon/content/changelog/v0-1-0.mdx +40 -0
- package/carbon/content/docs/analytics.mdx +90 -0
- package/carbon/content/docs/authentication.mdx +231 -0
- package/carbon/content/docs/background-jobs.mdx +116 -0
- package/carbon/content/docs/cli.mdx +630 -0
- package/carbon/content/docs/database.mdx +236 -0
- package/carbon/content/docs/deployment.mdx +227 -0
- package/carbon/content/docs/development.mdx +238 -0
- package/carbon/content/docs/environments.mdx +84 -0
- package/carbon/content/docs/getting-started.mdx +112 -0
- package/carbon/content/docs/legal/privacy-policy.mdx +89 -0
- package/carbon/content/docs/legal/terms-of-service.mdx +99 -0
- package/carbon/content/docs/optional-services.mdx +160 -0
- package/carbon/db/Dockerfile +23 -0
- package/carbon/docker-compose.dev-init.yml +5 -0
- package/carbon/docker-compose.metabase.override.yml +14 -0
- package/carbon/docker-compose.metabase.prod.yml +28 -0
- package/carbon/docker-compose.metabase.yml +84 -0
- package/carbon/docker-compose.n8n.override.yml +14 -0
- package/carbon/docker-compose.n8n.prod.yml +31 -0
- package/carbon/docker-compose.n8n.yml +97 -0
- package/carbon/docker-compose.observability.override.yml +18 -0
- package/carbon/docker-compose.observability.prod.yml +28 -0
- package/carbon/docker-compose.observability.yml +125 -0
- package/carbon/docker-compose.override.yml +28 -0
- package/carbon/docker-compose.prod.yml +294 -0
- package/carbon/docker-compose.yml +508 -0
- package/carbon/docker-entrypoint.sh +12 -0
- package/carbon/ha/activate-standby.sh +52 -0
- package/carbon/ha/primary-init.sql +36 -0
- package/carbon/ha/standby-init.sh +74 -0
- package/carbon/k8s/LICENSE +99 -0
- package/carbon/k8s/README.md +272 -0
- package/carbon/k8s/base/app/deployment.yaml +130 -0
- package/carbon/k8s/base/app/hpa.yaml +44 -0
- package/carbon/k8s/base/app/kustomization.yaml +10 -0
- package/carbon/k8s/base/app/network-policy.yaml +124 -0
- package/carbon/k8s/base/app/pdb.yaml +14 -0
- package/carbon/k8s/base/app/rbac.yaml +36 -0
- package/carbon/k8s/base/app/service.yaml +16 -0
- package/carbon/k8s/base/backup/cronjob.yaml +120 -0
- package/carbon/k8s/base/backup/kustomization.yaml +7 -0
- package/carbon/k8s/base/backup/network-policy.yaml +31 -0
- package/carbon/k8s/base/backup/rbac.yaml +7 -0
- package/carbon/k8s/base/cluster-autoscaler/deployment.yaml +103 -0
- package/carbon/k8s/base/cluster-autoscaler/kustomization.yaml +17 -0
- package/carbon/k8s/base/cluster-autoscaler/rbac.yaml +109 -0
- package/carbon/k8s/base/config/configmap.yaml +48 -0
- package/carbon/k8s/base/config/kustomization.yaml +8 -0
- package/carbon/k8s/base/hetzner-ccm/kustomization.yaml +9 -0
- package/carbon/k8s/base/hetzner-csi/kustomization.yaml +9 -0
- package/carbon/k8s/base/kustomization.yaml +43 -0
- package/carbon/k8s/base/namespace.yaml +7 -0
- package/carbon/k8s/base/network-policies.yaml +95 -0
- package/carbon/k8s/base/registry/kustomization.yaml +5 -0
- package/carbon/k8s/base/registry/local-registry.yaml +193 -0
- package/carbon/k8s/base/traefik/certificate.yaml +21 -0
- package/carbon/k8s/base/traefik/configmap.yaml +13 -0
- package/carbon/k8s/base/traefik/deployment.yaml +165 -0
- package/carbon/k8s/base/traefik/ingressroute.yaml +141 -0
- package/carbon/k8s/base/traefik/kustomization.yaml +11 -0
- package/carbon/k8s/base/traefik/middleware.yaml +109 -0
- package/carbon/k8s/base/traefik/network-policy.yaml +92 -0
- package/carbon/k8s/base/traefik/service.yaml +38 -0
- package/carbon/k8s/flux/README.md +49 -0
- package/carbon/k8s/flux/clusters/primary/vibecarbon.yaml +128 -0
- package/carbon/k8s/flux/clusters/standby/vibecarbon.yaml +83 -0
- package/carbon/k8s/gitops/cert-manager-webhook-hetzner/helm-release.yaml +38 -0
- package/carbon/k8s/gitops/cert-manager-webhook-hetzner/helm-repository.yaml +16 -0
- package/carbon/k8s/gitops/cert-manager-webhook-hetzner/kustomization.yaml +10 -0
- package/carbon/k8s/gitops/supabase/helm-release.yaml +66 -0
- package/carbon/k8s/gitops/supabase/helm-repository.yaml +18 -0
- package/carbon/k8s/gitops/supabase/kustomization.yaml +33 -0
- package/carbon/k8s/infra/cert-manager-resources/cluster-issuers-cloudflare.yaml +51 -0
- package/carbon/k8s/infra/cert-manager-resources/cluster-issuers-hetzner.yaml +59 -0
- package/carbon/k8s/infra/cert-manager-resources/cluster-issuers-manual.yaml +43 -0
- package/carbon/k8s/infra/cert-manager-resources/kustomization.yaml +15 -0
- package/carbon/k8s/infra/kustomization.yaml +21 -0
- package/carbon/k8s/infra/traefik-crds/kustomization.yaml +10 -0
- package/carbon/k8s/overlays/local/configmap.yaml +23 -0
- package/carbon/k8s/overlays/local/ingressroute-studio.yaml +104 -0
- package/carbon/k8s/overlays/local/kustomization.yaml +215 -0
- package/carbon/k8s/overlays/local/namespace.yaml +8 -0
- package/carbon/k8s/overlays/local/secrets.yaml +32 -0
- package/carbon/k8s/overlays/production/kustomization.yaml +34 -0
- package/carbon/k8s/test-local.sh +318 -0
- package/carbon/k8s/values/supabase.values.yaml +133 -0
- package/carbon/package.json +154 -0
- package/carbon/runtime.Dockerfile +17 -0
- package/carbon/scripts/_dev-jwt.mjs +45 -0
- package/carbon/scripts/check-rls.ts +53 -0
- package/carbon/scripts/dev-init.js +191 -0
- package/carbon/scripts/dev.js +191 -0
- package/carbon/scripts/docker-down.js +63 -0
- package/carbon/scripts/docker-logs.js +59 -0
- package/carbon/scripts/docker-up.js +222 -0
- package/carbon/scripts/generate-dev-configs.sh +131 -0
- package/carbon/scripts/generate-rss.ts +116 -0
- package/carbon/scripts/generate-sitemap.ts +102 -0
- package/carbon/scripts/k8s-apply.js +71 -0
- package/carbon/scripts/k8s-delete.js +75 -0
- package/carbon/scripts/lib/manifest.js +176 -0
- package/carbon/scripts/secret-scan.mjs +278 -0
- package/carbon/scripts/validate-dev-configs.sh +101 -0
- package/carbon/src/client/App.tsx +202 -0
- package/carbon/src/client/assets/hyperformant-dark.svg +29 -0
- package/carbon/src/client/assets/hyperformant-light.svg +29 -0
- package/carbon/src/client/assets/logos/aider.svg +1 -0
- package/carbon/src/client/assets/logos/antigravity.svg +1 -0
- package/carbon/src/client/assets/logos/bolt.svg +1 -0
- package/carbon/src/client/assets/logos/claude-code.svg +1 -0
- package/carbon/src/client/assets/logos/copilot.svg +1 -0
- package/carbon/src/client/assets/logos/cursor.svg +1 -0
- package/carbon/src/client/assets/logos/gemini-cli.svg +1 -0
- package/carbon/src/client/assets/logos/lovable.svg +1 -0
- package/carbon/src/client/assets/logos/openai-codex.svg +1 -0
- package/carbon/src/client/assets/logos/v0.svg +1 -0
- package/carbon/src/client/assets/logos/windsurf.svg +1 -0
- package/carbon/src/client/assets/vibecarbon-icon.svg +19 -0
- package/carbon/src/client/assets/vibecarbon-logo-dark.svg +29 -0
- package/carbon/src/client/assets/vibecarbon-logo-light.svg +29 -0
- package/carbon/src/client/components/AIIntegrationSection.tsx +120 -0
- package/carbon/src/client/components/AppSidebar.tsx +760 -0
- package/carbon/src/client/components/ArchitectureSection.tsx +46 -0
- package/carbon/src/client/components/CTAFooter.tsx +59 -0
- package/carbon/src/client/components/ComparisonSection.tsx +132 -0
- package/carbon/src/client/components/ContentPanel.tsx +66 -0
- package/carbon/src/client/components/ContentSkeleton.tsx +21 -0
- package/carbon/src/client/components/ErrorBoundary.tsx +46 -0
- package/carbon/src/client/components/FAQSection.tsx +76 -0
- package/carbon/src/client/components/FileUpload.tsx +210 -0
- package/carbon/src/client/components/HeaderActions.tsx +17 -0
- package/carbon/src/client/components/Hero.tsx +608 -0
- package/carbon/src/client/components/ImpersonationBanner.tsx +31 -0
- package/carbon/src/client/components/LanguageSwitcher.tsx +67 -0
- package/carbon/src/client/components/Logo.tsx +87 -0
- package/carbon/src/client/components/LogoStrip.tsx +76 -0
- package/carbon/src/client/components/MetricsStrip.tsx +48 -0
- package/carbon/src/client/components/Nav.tsx +195 -0
- package/carbon/src/client/components/NewsletterSignup.tsx +147 -0
- package/carbon/src/client/components/NotificationDrawer.tsx +171 -0
- package/carbon/src/client/components/PageHeader.tsx +24 -0
- package/carbon/src/client/components/PlanGate.tsx +36 -0
- package/carbon/src/client/components/PricingSection.tsx +371 -0
- package/carbon/src/client/components/SEO.tsx +34 -0
- package/carbon/src/client/components/SmoothScroll.tsx +45 -0
- package/carbon/src/client/components/TechStackSection.tsx +165 -0
- package/carbon/src/client/components/WorkflowSection.tsx +604 -0
- package/carbon/src/client/components/admin/DockerLogs.tsx +276 -0
- package/carbon/src/client/components/admin/PerformanceMetrics.tsx +230 -0
- package/carbon/src/client/components/admin/ServiceCard.tsx +45 -0
- package/carbon/src/client/components/admin/ServicesStatus.tsx +296 -0
- package/carbon/src/client/components/architecture/ArchitectureDiagram.tsx +413 -0
- package/carbon/src/client/components/auth/AuthProvider.tsx +466 -0
- package/carbon/src/client/components/effects/FilmGrainOverlay.tsx +35 -0
- package/carbon/src/client/components/effects/FresnelEdge.tsx +49 -0
- package/carbon/src/client/components/effects/GlowTracker.tsx +46 -0
- package/carbon/src/client/components/effects/SparkBurst.tsx +145 -0
- package/carbon/src/client/components/effects/VGlowEffect.tsx +83 -0
- package/carbon/src/client/components/effects/index.ts +2 -0
- package/carbon/src/client/components/layouts/SidebarLayout.tsx +20 -0
- package/carbon/src/client/components/scroll/ScrollSection.tsx +76 -0
- package/carbon/src/client/components/scroll/ScrollytellingProvider.tsx +81 -0
- package/carbon/src/client/components/scroll/index.ts +2 -0
- package/carbon/src/client/components/ui/accordion.tsx +71 -0
- package/carbon/src/client/components/ui/alert-dialog.tsx +162 -0
- package/carbon/src/client/components/ui/alert.tsx +73 -0
- package/carbon/src/client/components/ui/aspect-ratio.tsx +22 -0
- package/carbon/src/client/components/ui/avatar.tsx +91 -0
- package/carbon/src/client/components/ui/badge.tsx +50 -0
- package/carbon/src/client/components/ui/breadcrumb.tsx +100 -0
- package/carbon/src/client/components/ui/button-group.tsx +78 -0
- package/carbon/src/client/components/ui/button.tsx +120 -0
- package/carbon/src/client/components/ui/calendar.tsx +182 -0
- package/carbon/src/client/components/ui/card.tsx +85 -0
- package/carbon/src/client/components/ui/carousel.tsx +227 -0
- package/carbon/src/client/components/ui/chart.tsx +357 -0
- package/carbon/src/client/components/ui/checkbox.tsx +27 -0
- package/carbon/src/client/components/ui/collapsible.tsx +15 -0
- package/carbon/src/client/components/ui/command.tsx +178 -0
- package/carbon/src/client/components/ui/context-menu.tsx +233 -0
- package/carbon/src/client/components/ui/dialog.tsx +132 -0
- package/carbon/src/client/components/ui/drawer.tsx +118 -0
- package/carbon/src/client/components/ui/dropdown-menu.tsx +242 -0
- package/carbon/src/client/components/ui/empty.tsx +94 -0
- package/carbon/src/client/components/ui/field.tsx +226 -0
- package/carbon/src/client/components/ui/hover-card.tsx +44 -0
- package/carbon/src/client/components/ui/input-group.tsx +146 -0
- package/carbon/src/client/components/ui/input-otp.tsx +83 -0
- package/carbon/src/client/components/ui/input.tsx +20 -0
- package/carbon/src/client/components/ui/item.tsx +188 -0
- package/carbon/src/client/components/ui/kbd.tsx +26 -0
- package/carbon/src/client/components/ui/label.tsx +21 -0
- package/carbon/src/client/components/ui/menubar.tsx +250 -0
- package/carbon/src/client/components/ui/navigation-menu.tsx +155 -0
- package/carbon/src/client/components/ui/pagination.tsx +102 -0
- package/carbon/src/client/components/ui/popover.tsx +75 -0
- package/carbon/src/client/components/ui/progress.tsx +66 -0
- package/carbon/src/client/components/ui/radio-group.tsx +36 -0
- package/carbon/src/client/components/ui/resizable.tsx +46 -0
- package/carbon/src/client/components/ui/scroll-area.tsx +48 -0
- package/carbon/src/client/components/ui/select.tsx +186 -0
- package/carbon/src/client/components/ui/separator.tsx +21 -0
- package/carbon/src/client/components/ui/sheet.tsx +124 -0
- package/carbon/src/client/components/ui/sidebar.tsx +702 -0
- package/carbon/src/client/components/ui/skeleton.tsx +13 -0
- package/carbon/src/client/components/ui/slider.tsx +57 -0
- package/carbon/src/client/components/ui/sonner.tsx +45 -0
- package/carbon/src/client/components/ui/spinner.tsx +15 -0
- package/carbon/src/client/components/ui/switch.tsx +30 -0
- package/carbon/src/client/components/ui/table.tsx +89 -0
- package/carbon/src/client/components/ui/tabs.tsx +73 -0
- package/carbon/src/client/components/ui/textarea.tsx +18 -0
- package/carbon/src/client/components/ui/toggle-group.tsx +87 -0
- package/carbon/src/client/components/ui/toggle.tsx +44 -0
- package/carbon/src/client/components/ui/tooltip.tsx +56 -0
- package/carbon/src/client/hooks/api/index.ts +14 -0
- package/carbon/src/client/hooks/api/useAuthSettings.ts +80 -0
- package/carbon/src/client/hooks/api/useSubscription.ts +87 -0
- package/carbon/src/client/hooks/use-mobile.ts +21 -0
- package/carbon/src/client/hooks/useMousePosition.ts +91 -0
- package/carbon/src/client/hooks/useNotifications.tsx +124 -0
- package/carbon/src/client/hooks/useOrganizationMembers.ts +127 -0
- package/carbon/src/client/hooks/useOrganizations.tsx +230 -0
- package/carbon/src/client/hooks/usePackageManager.ts +69 -0
- package/carbon/src/client/hooks/useReducedMotion.ts +20 -0
- package/carbon/src/client/hooks/useRunningServices.ts +114 -0
- package/carbon/src/client/hooks/useScrollProgress.ts +56 -0
- package/carbon/src/client/index.css +467 -0
- package/carbon/src/client/index.html +56 -0
- package/carbon/src/client/lib/admin-services.ts +151 -0
- package/carbon/src/client/lib/api.ts +32 -0
- package/carbon/src/client/lib/blog.ts +35 -0
- package/carbon/src/client/lib/changelog.ts +33 -0
- package/carbon/src/client/lib/docs-search.ts +101 -0
- package/carbon/src/client/lib/docs.ts +37 -0
- package/carbon/src/client/lib/i18n.ts +32 -0
- package/carbon/src/client/lib/supabase.ts +72 -0
- package/carbon/src/client/lib/tailwind-colors.ts +357 -0
- package/carbon/src/client/lib/theme.ts +117 -0
- package/carbon/src/client/lib/utils.ts +22 -0
- package/carbon/src/client/locales/de.json +529 -0
- package/carbon/src/client/locales/en.json +461 -0
- package/carbon/src/client/locales/es.json +529 -0
- package/carbon/src/client/locales/fr.json +529 -0
- package/carbon/src/client/locales/pt.json +529 -0
- package/carbon/src/client/main.tsx +56 -0
- package/carbon/src/client/mdx.d.ts +13 -0
- package/carbon/src/client/pages/ApiDocs.tsx +76 -0
- package/carbon/src/client/pages/AuthCallback.tsx +34 -0
- package/carbon/src/client/pages/Blog.tsx +167 -0
- package/carbon/src/client/pages/Changelog.tsx +171 -0
- package/carbon/src/client/pages/Charts.tsx +388 -0
- package/carbon/src/client/pages/Checkout.tsx +227 -0
- package/carbon/src/client/pages/Contact.tsx +174 -0
- package/carbon/src/client/pages/Dashboard.tsx +368 -0
- package/carbon/src/client/pages/Docs.tsx +372 -0
- package/carbon/src/client/pages/ForgotPassword.tsx +111 -0
- package/carbon/src/client/pages/Home.tsx +187 -0
- package/carbon/src/client/pages/Legal.tsx +100 -0
- package/carbon/src/client/pages/Login.tsx +408 -0
- package/carbon/src/client/pages/MFAVerify.tsx +156 -0
- package/carbon/src/client/pages/NotFound.tsx +21 -0
- package/carbon/src/client/pages/Onboarding.tsx +246 -0
- package/carbon/src/client/pages/ResetPassword.tsx +200 -0
- package/carbon/src/client/pages/UIComponents.tsx +390 -0
- package/carbon/src/client/pages/admin/ContactSubmissions.tsx +220 -0
- package/carbon/src/client/pages/admin/Dashboard.tsx +24 -0
- package/carbon/src/client/pages/admin/Infrastructure.tsx +257 -0
- package/carbon/src/client/pages/admin/Jobs.tsx +225 -0
- package/carbon/src/client/pages/admin/Logs.tsx +18 -0
- package/carbon/src/client/pages/admin/Newsletter.tsx +300 -0
- package/carbon/src/client/pages/admin/Notifications.tsx +603 -0
- package/carbon/src/client/pages/admin/Organizations.tsx +306 -0
- package/carbon/src/client/pages/admin/Settings.tsx +314 -0
- package/carbon/src/client/pages/admin/Theme.tsx +465 -0
- package/carbon/src/client/pages/admin/Users.tsx +365 -0
- package/carbon/src/client/pages/api-docs.css +156 -0
- package/carbon/src/client/pages/organizations/Details.tsx +200 -0
- package/carbon/src/client/pages/organizations/Members.tsx +402 -0
- package/carbon/src/client/pages/settings/Billing.tsx +473 -0
- package/carbon/src/client/pages/settings/Profile.tsx +160 -0
- package/carbon/src/client/pages/settings/Security.tsx +341 -0
- package/carbon/src/client/public/favicon.svg +19 -0
- package/carbon/src/client/public/robots.txt +8 -0
- package/carbon/src/server/billing/index.ts +104 -0
- package/carbon/src/server/billing/provider.ts +81 -0
- package/carbon/src/server/billing/providers/paddle.ts +314 -0
- package/carbon/src/server/billing/providers/polar.ts +325 -0
- package/carbon/src/server/billing/providers/stripe.ts +233 -0
- package/carbon/src/server/emails/templates.ts +116 -0
- package/carbon/src/server/index.ts +554 -0
- package/carbon/src/server/lib/auth.ts +6 -0
- package/carbon/src/server/lib/email.ts +64 -0
- package/carbon/src/server/lib/env.ts +112 -0
- package/carbon/src/server/lib/errors.ts +21 -0
- package/carbon/src/server/lib/logger.ts +17 -0
- package/carbon/src/server/lib/rate-limiter.ts +288 -0
- package/carbon/src/server/lib/request.ts +34 -0
- package/carbon/src/server/lib/stripe.ts +42 -0
- package/carbon/src/server/lib/supabase.ts +65 -0
- package/carbon/src/server/middleware/requirePlan.ts +80 -0
- package/carbon/src/server/routes/_internal/services-status.ts +958 -0
- package/carbon/src/server/routes/_internal/verify-role.ts +185 -0
- package/carbon/src/server/routes/health.ts +48 -0
- package/carbon/src/server/routes/v1/admin/contact.ts +128 -0
- package/carbon/src/server/routes/v1/admin/jobs.ts +171 -0
- package/carbon/src/server/routes/v1/admin/newsletter.ts +237 -0
- package/carbon/src/server/routes/v1/auth.ts +390 -0
- package/carbon/src/server/routes/v1/billing.ts +718 -0
- package/carbon/src/server/routes/v1/contact.ts +93 -0
- package/carbon/src/server/routes/v1/index.ts +1333 -0
- package/carbon/src/server/routes/v1/newsletter.ts +181 -0
- package/carbon/src/server/routes/v1/performance.ts +157 -0
- package/carbon/src/server/routes/v1/stats.ts +170 -0
- package/carbon/src/server/routes/v1/theme.ts +106 -0
- package/carbon/src/server/routes/webhooks/billing.ts +376 -0
- package/carbon/src/server/routes/webhooks/stripe.ts +276 -0
- package/carbon/src/server/types.ts +11 -0
- package/carbon/src/shared/pricing.ts +155 -0
- package/carbon/src/shared/types.ts +338 -0
- package/carbon/supabase/migrations/00001_init.sql +717 -0
- package/carbon/supabase/migrations/00002_theme_settings.sql +13 -0
- package/carbon/supabase/migrations/00003_pg_cron.sql +121 -0
- package/carbon/supabase/migrations/00004_contact_newsletter.sql +81 -0
- package/carbon/supabase/migrations/00005_localization_languages.sql +22 -0
- package/carbon/supabase/seed.sql +16 -0
- package/carbon/tests/_helpers/app.ts +45 -0
- package/carbon/tests/_helpers/env.ts +37 -0
- package/carbon/tests/_helpers/factories.ts +69 -0
- package/carbon/tests/_helpers/jwt.ts +23 -0
- package/carbon/tests/_helpers/setup-integration.ts +20 -0
- package/carbon/tests/_helpers/setup-rtl.ts +12 -0
- package/carbon/tests/component/ErrorBoundary.test.tsx +53 -0
- package/carbon/tests/component/use-auth-settings.test.tsx +119 -0
- package/carbon/tests/integration/server/routes/contact.test.ts +162 -0
- package/carbon/tests/integration/server/routes/health.test.ts +61 -0
- package/carbon/tests/structural/i18n-parity.test.ts +42 -0
- package/carbon/tests/unit/client/utils.test.ts +49 -0
- package/carbon/tests/unit/shared/pricing.test.ts +93 -0
- package/carbon/tsconfig.json +27 -0
- package/carbon/tsconfig.server.json +27 -0
- package/carbon/tsconfig.test.json +9 -0
- package/carbon/vite.config.ts +110 -0
- package/carbon/vitest.config.ts +74 -0
- package/carbon/volumes/db/jwt.sql +57 -0
- package/carbon/volumes/db/metabase-init.sh +29 -0
- package/carbon/volumes/db/n8n-init.sh +25 -0
- package/carbon/volumes/db/realtime.sql +33 -0
- package/carbon/volumes/db/roles.sql +93 -0
- package/carbon/volumes/db/set-passwords.sh +12 -0
- package/carbon/volumes/db/super-admin.dev.sql +113 -0
- package/carbon/volumes/db/super-admin.generated.sql +113 -0
- package/carbon/volumes/db/super-admin.sql +114 -0
- package/carbon/volumes/grafana/dashboards/logs.json +179 -0
- package/carbon/volumes/grafana/dashboards/overview.json +523 -0
- package/carbon/volumes/grafana/dashboards/postgresql.json +337 -0
- package/carbon/volumes/grafana/dashboards.dev/logs.json +179 -0
- package/carbon/volumes/grafana/dashboards.dev/overview.json +156 -0
- package/carbon/volumes/grafana/dashboards.dev/postgresql.json +337 -0
- package/carbon/volumes/grafana/provisioning/dashboards/dashboards.dev.yml +16 -0
- package/carbon/volumes/grafana/provisioning/dashboards/dashboards.yml +16 -0
- package/carbon/volumes/grafana/provisioning/datasources/datasources.yml +43 -0
- package/carbon/volumes/kong/docker-entrypoint.sh +9 -0
- package/carbon/volumes/kong/kong.yml +208 -0
- package/carbon/volumes/loki/loki-config.yml +58 -0
- package/carbon/volumes/n8n/hooks.js +131 -0
- package/carbon/volumes/n8n/scripts/setup.sh +66 -0
- package/carbon/volumes/prometheus/prometheus.yml +43 -0
- package/carbon/volumes/promtail/promtail-config.yml +64 -0
- package/carbon/volumes/traefik/middlewares.dev.yml +83 -0
- package/carbon/volumes/traefik/middlewares.yml +95 -0
- package/carbon/volumes/traefik/vite-dev.yml +20 -0
- package/package.json +95 -0
- package/src/access.js +354 -0
- package/src/activate.js +187 -0
- package/src/add.js +718 -0
- package/src/backup.js +786 -0
- package/src/cli.js +350 -0
- package/src/configure.js +967 -0
- package/src/console.js +155 -0
- package/src/create.js +1499 -0
- package/src/deploy.js +311 -0
- package/src/destroy.js +2033 -0
- package/src/diagnose.js +735 -0
- package/src/down.js +80 -0
- package/src/failover.js +1032 -0
- package/src/lib/backup-s3.js +179 -0
- package/src/lib/build.js +33 -0
- package/src/lib/checksum.js +28 -0
- package/src/lib/ci-setup.js +666 -0
- package/src/lib/cli/help.js +129 -0
- package/src/lib/cli/parse-flags.js +160 -0
- package/src/lib/cli/select-action.js +65 -0
- package/src/lib/cli/select-environment.js +108 -0
- package/src/lib/cli/tty-guard.js +75 -0
- package/src/lib/cloudflare.js +447 -0
- package/src/lib/colors.js +52 -0
- package/src/lib/command.js +361 -0
- package/src/lib/config.js +359 -0
- package/src/lib/cost.js +103 -0
- package/src/lib/deploy/bundle.js +231 -0
- package/src/lib/deploy/compose/acme-verify.js +121 -0
- package/src/lib/deploy/compose/build-args.js +78 -0
- package/src/lib/deploy/compose/ha.js +1874 -0
- package/src/lib/deploy/compose/index.js +1294 -0
- package/src/lib/deploy/compose/reconcile.js +74 -0
- package/src/lib/deploy/github.js +382 -0
- package/src/lib/deploy/image.js +191 -0
- package/src/lib/deploy/index.js +119 -0
- package/src/lib/deploy/k8s/LICENSE +99 -0
- package/src/lib/deploy/k8s/gitops-deploy.js +298 -0
- package/src/lib/deploy/k8s/ha/index.js +1000 -0
- package/src/lib/deploy/k8s/index.js +62 -0
- package/src/lib/deploy/k8s/k3s.js +2515 -0
- package/src/lib/deploy/orchestrator.js +1401 -0
- package/src/lib/deploy/prompts.js +545 -0
- package/src/lib/deploy/remote-build.js +130 -0
- package/src/lib/deploy/state.js +120 -0
- package/src/lib/deploy/utils.js +328 -0
- package/src/lib/deploy-logger.js +93 -0
- package/src/lib/dns-propagation.js +48 -0
- package/src/lib/environment.js +58 -0
- package/src/lib/fetch-retry.js +103 -0
- package/src/lib/github-environments.js +335 -0
- package/src/lib/hetzner-dns.js +377 -0
- package/src/lib/hetzner-guided-setup.js +275 -0
- package/src/lib/host-keys.js +37 -0
- package/src/lib/iac/cloud-init.js +52 -0
- package/src/lib/iac/index.js +325 -0
- package/src/lib/iac/programs/hetzner-compose.js +130 -0
- package/src/lib/iac/programs/hetzner-k8s.js +320 -0
- package/src/lib/kubectl.js +81 -0
- package/src/lib/licensing/index.js +259 -0
- package/src/lib/licensing/tiers.js +181 -0
- package/src/lib/licensing/validator.js +171 -0
- package/src/lib/merge-package-json.js +90 -0
- package/src/lib/operator-ip.js +381 -0
- package/src/lib/package-manager.js +111 -0
- package/src/lib/perf.js +71 -0
- package/src/lib/project-guard.js +39 -0
- package/src/lib/project.js +334 -0
- package/src/lib/providers/base.js +276 -0
- package/src/lib/providers/hetzner-s3.js +656 -0
- package/src/lib/providers/hetzner.js +755 -0
- package/src/lib/providers/index.js +164 -0
- package/src/lib/s3.js +510 -0
- package/src/lib/secret-scan.js +583 -0
- package/src/lib/secrets.js +63 -0
- package/src/lib/server-types.js +195 -0
- package/src/lib/shell.js +91 -0
- package/src/lib/ssh.js +241 -0
- package/src/lib/tracker.js +242 -0
- package/src/lib/upgrade-policy.js +170 -0
- package/src/lib/validators.js +105 -0
- package/src/lib/version.js +5 -0
- package/src/remove.js +292 -0
- package/src/reset.js +97 -0
- package/src/restore.js +871 -0
- package/src/scale.js +1734 -0
- package/src/shell.js +222 -0
- package/src/status.js +981 -0
- package/src/up.js +264 -0
- package/src/upgrade.js +721 -0
|
@@ -0,0 +1,523 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": {
|
|
3
|
+
"list": []
|
|
4
|
+
},
|
|
5
|
+
"description": "System overview for {{PROJECT_NAME}}",
|
|
6
|
+
"editable": true,
|
|
7
|
+
"fiscalYearStartMonth": 0,
|
|
8
|
+
"graphTooltip": 1,
|
|
9
|
+
"id": null,
|
|
10
|
+
"links": [
|
|
11
|
+
{
|
|
12
|
+
"asDropdown": false,
|
|
13
|
+
"icon": "doc",
|
|
14
|
+
"includeVars": false,
|
|
15
|
+
"keepTime": true,
|
|
16
|
+
"tags": [],
|
|
17
|
+
"targetBlank": true,
|
|
18
|
+
"title": "PostgreSQL",
|
|
19
|
+
"tooltip": "Detailed PostgreSQL metrics",
|
|
20
|
+
"type": "link",
|
|
21
|
+
"url": "/d/{{PROJECT_NAME}}-postgresql/postgresql"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"asDropdown": false,
|
|
25
|
+
"icon": "gf-logs",
|
|
26
|
+
"includeVars": false,
|
|
27
|
+
"keepTime": true,
|
|
28
|
+
"tags": [],
|
|
29
|
+
"targetBlank": true,
|
|
30
|
+
"title": "Logs",
|
|
31
|
+
"tooltip": "Log explorer",
|
|
32
|
+
"type": "link",
|
|
33
|
+
"url": "/d/{{PROJECT_NAME}}-logs/logs"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"liveNow": false,
|
|
37
|
+
"panels": [
|
|
38
|
+
{
|
|
39
|
+
"collapsed": false,
|
|
40
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 0 },
|
|
41
|
+
"id": 100,
|
|
42
|
+
"title": "Service Health",
|
|
43
|
+
"type": "row"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
47
|
+
"fieldConfig": {
|
|
48
|
+
"defaults": {
|
|
49
|
+
"color": { "mode": "thresholds" },
|
|
50
|
+
"mappings": [
|
|
51
|
+
{ "options": { "0": { "color": "red", "index": 1, "text": "DOWN" }, "1": { "color": "green", "index": 0, "text": "UP" } }, "type": "value" }
|
|
52
|
+
],
|
|
53
|
+
"thresholds": {
|
|
54
|
+
"mode": "absolute",
|
|
55
|
+
"steps": [
|
|
56
|
+
{ "color": "red", "value": null },
|
|
57
|
+
{ "color": "green", "value": 1 }
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"overrides": []
|
|
62
|
+
},
|
|
63
|
+
"gridPos": { "h": 3, "w": 24, "x": 0, "y": 1 },
|
|
64
|
+
"id": 1,
|
|
65
|
+
"options": {
|
|
66
|
+
"colorMode": "background",
|
|
67
|
+
"graphMode": "none",
|
|
68
|
+
"justifyMode": "auto",
|
|
69
|
+
"orientation": "horizontal",
|
|
70
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
71
|
+
"textMode": "auto"
|
|
72
|
+
},
|
|
73
|
+
"targets": [
|
|
74
|
+
{
|
|
75
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
76
|
+
"expr": "up",
|
|
77
|
+
"legendFormat": "{{job}}",
|
|
78
|
+
"refId": "A"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"title": "",
|
|
82
|
+
"transparent": true,
|
|
83
|
+
"type": "stat"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"collapsed": false,
|
|
87
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 4 },
|
|
88
|
+
"id": 101,
|
|
89
|
+
"title": "Database",
|
|
90
|
+
"type": "row"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
94
|
+
"fieldConfig": {
|
|
95
|
+
"defaults": {
|
|
96
|
+
"color": { "mode": "thresholds" },
|
|
97
|
+
"mappings": [],
|
|
98
|
+
"thresholds": {
|
|
99
|
+
"mode": "absolute",
|
|
100
|
+
"steps": [
|
|
101
|
+
{ "color": "green", "value": null },
|
|
102
|
+
{ "color": "yellow", "value": 80 },
|
|
103
|
+
{ "color": "red", "value": 100 }
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"overrides": []
|
|
108
|
+
},
|
|
109
|
+
"gridPos": { "h": 4, "w": 4, "x": 0, "y": 5 },
|
|
110
|
+
"id": 2,
|
|
111
|
+
"options": {
|
|
112
|
+
"colorMode": "value",
|
|
113
|
+
"graphMode": "area",
|
|
114
|
+
"justifyMode": "auto",
|
|
115
|
+
"orientation": "auto",
|
|
116
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
117
|
+
"textMode": "auto"
|
|
118
|
+
},
|
|
119
|
+
"targets": [
|
|
120
|
+
{
|
|
121
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
122
|
+
"expr": "pg_stat_database_numbackends{datname=\"postgres\"}",
|
|
123
|
+
"legendFormat": "",
|
|
124
|
+
"refId": "A"
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"title": "Active Connections",
|
|
128
|
+
"type": "stat"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
132
|
+
"fieldConfig": {
|
|
133
|
+
"defaults": {
|
|
134
|
+
"color": { "mode": "thresholds" },
|
|
135
|
+
"mappings": [],
|
|
136
|
+
"thresholds": {
|
|
137
|
+
"mode": "absolute",
|
|
138
|
+
"steps": [{ "color": "green", "value": null }]
|
|
139
|
+
},
|
|
140
|
+
"unit": "bytes"
|
|
141
|
+
},
|
|
142
|
+
"overrides": []
|
|
143
|
+
},
|
|
144
|
+
"gridPos": { "h": 4, "w": 4, "x": 4, "y": 5 },
|
|
145
|
+
"id": 3,
|
|
146
|
+
"options": {
|
|
147
|
+
"colorMode": "value",
|
|
148
|
+
"graphMode": "none",
|
|
149
|
+
"justifyMode": "auto",
|
|
150
|
+
"orientation": "auto",
|
|
151
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
152
|
+
"textMode": "auto"
|
|
153
|
+
},
|
|
154
|
+
"targets": [
|
|
155
|
+
{
|
|
156
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
157
|
+
"expr": "pg_database_size_bytes{datname=\"postgres\"}",
|
|
158
|
+
"legendFormat": "",
|
|
159
|
+
"refId": "A"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"title": "Database Size",
|
|
163
|
+
"type": "stat"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
167
|
+
"fieldConfig": {
|
|
168
|
+
"defaults": {
|
|
169
|
+
"color": { "mode": "thresholds" },
|
|
170
|
+
"mappings": [],
|
|
171
|
+
"thresholds": {
|
|
172
|
+
"mode": "absolute",
|
|
173
|
+
"steps": [{ "color": "green", "value": null }]
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"overrides": []
|
|
177
|
+
},
|
|
178
|
+
"gridPos": { "h": 4, "w": 4, "x": 8, "y": 5 },
|
|
179
|
+
"id": 4,
|
|
180
|
+
"options": {
|
|
181
|
+
"colorMode": "value",
|
|
182
|
+
"graphMode": "none",
|
|
183
|
+
"justifyMode": "auto",
|
|
184
|
+
"orientation": "auto",
|
|
185
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
186
|
+
"textMode": "auto"
|
|
187
|
+
},
|
|
188
|
+
"targets": [
|
|
189
|
+
{
|
|
190
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
191
|
+
"expr": "sum(pg_stat_user_tables_n_live_tup)",
|
|
192
|
+
"legendFormat": "",
|
|
193
|
+
"refId": "A"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"title": "Total Rows",
|
|
197
|
+
"type": "stat"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
201
|
+
"fieldConfig": {
|
|
202
|
+
"defaults": {
|
|
203
|
+
"color": { "mode": "thresholds" },
|
|
204
|
+
"mappings": [],
|
|
205
|
+
"thresholds": {
|
|
206
|
+
"mode": "absolute",
|
|
207
|
+
"steps": [
|
|
208
|
+
{ "color": "red", "value": null },
|
|
209
|
+
{ "color": "yellow", "value": 90 },
|
|
210
|
+
{ "color": "green", "value": 99 }
|
|
211
|
+
]
|
|
212
|
+
},
|
|
213
|
+
"unit": "percent",
|
|
214
|
+
"decimals": 1
|
|
215
|
+
},
|
|
216
|
+
"overrides": []
|
|
217
|
+
},
|
|
218
|
+
"gridPos": { "h": 4, "w": 4, "x": 12, "y": 5 },
|
|
219
|
+
"id": 5,
|
|
220
|
+
"options": {
|
|
221
|
+
"colorMode": "value",
|
|
222
|
+
"graphMode": "area",
|
|
223
|
+
"justifyMode": "auto",
|
|
224
|
+
"orientation": "auto",
|
|
225
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
226
|
+
"textMode": "auto"
|
|
227
|
+
},
|
|
228
|
+
"targets": [
|
|
229
|
+
{
|
|
230
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
231
|
+
"expr": "100 * pg_stat_database_blks_hit{datname=\"postgres\"} / (pg_stat_database_blks_hit{datname=\"postgres\"} + pg_stat_database_blks_read{datname=\"postgres\"} + 1)",
|
|
232
|
+
"legendFormat": "",
|
|
233
|
+
"refId": "A"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"title": "Cache Hit Ratio",
|
|
237
|
+
"type": "stat"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
241
|
+
"fieldConfig": {
|
|
242
|
+
"defaults": {
|
|
243
|
+
"color": { "mode": "thresholds" },
|
|
244
|
+
"mappings": [],
|
|
245
|
+
"thresholds": {
|
|
246
|
+
"mode": "absolute",
|
|
247
|
+
"steps": [
|
|
248
|
+
{ "color": "green", "value": null },
|
|
249
|
+
{ "color": "yellow", "value": 50 },
|
|
250
|
+
{ "color": "red", "value": 500 }
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"overrides": []
|
|
255
|
+
},
|
|
256
|
+
"gridPos": { "h": 4, "w": 4, "x": 16, "y": 5 },
|
|
257
|
+
"id": 6,
|
|
258
|
+
"options": {
|
|
259
|
+
"colorMode": "value",
|
|
260
|
+
"graphMode": "area",
|
|
261
|
+
"justifyMode": "auto",
|
|
262
|
+
"orientation": "auto",
|
|
263
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
264
|
+
"textMode": "auto"
|
|
265
|
+
},
|
|
266
|
+
"targets": [
|
|
267
|
+
{
|
|
268
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
269
|
+
"expr": "pg_stat_database_deadlocks{datname=\"postgres\"}",
|
|
270
|
+
"legendFormat": "",
|
|
271
|
+
"refId": "A"
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"title": "Deadlocks (total)",
|
|
275
|
+
"type": "stat"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
279
|
+
"fieldConfig": {
|
|
280
|
+
"defaults": {
|
|
281
|
+
"color": { "mode": "thresholds" },
|
|
282
|
+
"mappings": [],
|
|
283
|
+
"thresholds": {
|
|
284
|
+
"mode": "absolute",
|
|
285
|
+
"steps": [
|
|
286
|
+
{ "color": "green", "value": null },
|
|
287
|
+
{ "color": "yellow", "value": 100 },
|
|
288
|
+
{ "color": "red", "value": 500 }
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
},
|
|
292
|
+
"overrides": []
|
|
293
|
+
},
|
|
294
|
+
"gridPos": { "h": 4, "w": 4, "x": 20, "y": 5 },
|
|
295
|
+
"id": 7,
|
|
296
|
+
"options": {
|
|
297
|
+
"colorMode": "value",
|
|
298
|
+
"graphMode": "area",
|
|
299
|
+
"justifyMode": "auto",
|
|
300
|
+
"orientation": "auto",
|
|
301
|
+
"reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false },
|
|
302
|
+
"textMode": "auto"
|
|
303
|
+
},
|
|
304
|
+
"targets": [
|
|
305
|
+
{
|
|
306
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
307
|
+
"expr": "pg_stat_database_conflicts{datname=\"postgres\"}",
|
|
308
|
+
"legendFormat": "",
|
|
309
|
+
"refId": "A"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"title": "Conflicts (total)",
|
|
313
|
+
"type": "stat"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
317
|
+
"fieldConfig": {
|
|
318
|
+
"defaults": {
|
|
319
|
+
"color": { "mode": "palette-classic" },
|
|
320
|
+
"custom": {
|
|
321
|
+
"axisCenteredZero": false,
|
|
322
|
+
"axisColorMode": "text",
|
|
323
|
+
"axisLabel": "",
|
|
324
|
+
"axisPlacement": "auto",
|
|
325
|
+
"barAlignment": 0,
|
|
326
|
+
"drawStyle": "line",
|
|
327
|
+
"fillOpacity": 10,
|
|
328
|
+
"gradientMode": "none",
|
|
329
|
+
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
|
330
|
+
"lineInterpolation": "smooth",
|
|
331
|
+
"lineWidth": 1,
|
|
332
|
+
"pointSize": 5,
|
|
333
|
+
"scaleDistribution": { "type": "linear" },
|
|
334
|
+
"showPoints": "never",
|
|
335
|
+
"spanNulls": false,
|
|
336
|
+
"stacking": { "group": "A", "mode": "none" },
|
|
337
|
+
"thresholdsStyle": { "mode": "off" }
|
|
338
|
+
},
|
|
339
|
+
"mappings": [],
|
|
340
|
+
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] },
|
|
341
|
+
"unit": "ops"
|
|
342
|
+
},
|
|
343
|
+
"overrides": []
|
|
344
|
+
},
|
|
345
|
+
"gridPos": { "h": 8, "w": 12, "x": 0, "y": 9 },
|
|
346
|
+
"id": 8,
|
|
347
|
+
"options": {
|
|
348
|
+
"legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom", "showLegend": true },
|
|
349
|
+
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
350
|
+
},
|
|
351
|
+
"targets": [
|
|
352
|
+
{
|
|
353
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
354
|
+
"expr": "rate(pg_stat_database_tup_fetched{datname=\"postgres\"}[5m])",
|
|
355
|
+
"legendFormat": "Fetched",
|
|
356
|
+
"refId": "A"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
360
|
+
"expr": "rate(pg_stat_database_tup_inserted{datname=\"postgres\"}[5m])",
|
|
361
|
+
"legendFormat": "Inserted",
|
|
362
|
+
"refId": "B"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
366
|
+
"expr": "rate(pg_stat_database_tup_updated{datname=\"postgres\"}[5m])",
|
|
367
|
+
"legendFormat": "Updated",
|
|
368
|
+
"refId": "C"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
372
|
+
"expr": "rate(pg_stat_database_tup_deleted{datname=\"postgres\"}[5m])",
|
|
373
|
+
"legendFormat": "Deleted",
|
|
374
|
+
"refId": "D"
|
|
375
|
+
}
|
|
376
|
+
],
|
|
377
|
+
"title": "Row Operations / sec",
|
|
378
|
+
"type": "timeseries"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
382
|
+
"fieldConfig": {
|
|
383
|
+
"defaults": {
|
|
384
|
+
"color": { "mode": "palette-classic" },
|
|
385
|
+
"custom": {
|
|
386
|
+
"axisCenteredZero": false,
|
|
387
|
+
"axisColorMode": "text",
|
|
388
|
+
"axisLabel": "",
|
|
389
|
+
"axisPlacement": "auto",
|
|
390
|
+
"barAlignment": 0,
|
|
391
|
+
"drawStyle": "line",
|
|
392
|
+
"fillOpacity": 10,
|
|
393
|
+
"gradientMode": "none",
|
|
394
|
+
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
|
395
|
+
"lineInterpolation": "smooth",
|
|
396
|
+
"lineWidth": 1,
|
|
397
|
+
"pointSize": 5,
|
|
398
|
+
"scaleDistribution": { "type": "linear" },
|
|
399
|
+
"showPoints": "never",
|
|
400
|
+
"spanNulls": false,
|
|
401
|
+
"stacking": { "group": "A", "mode": "none" },
|
|
402
|
+
"thresholdsStyle": { "mode": "off" }
|
|
403
|
+
},
|
|
404
|
+
"mappings": [],
|
|
405
|
+
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] },
|
|
406
|
+
"unit": "short"
|
|
407
|
+
},
|
|
408
|
+
"overrides": []
|
|
409
|
+
},
|
|
410
|
+
"gridPos": { "h": 8, "w": 12, "x": 12, "y": 9 },
|
|
411
|
+
"id": 9,
|
|
412
|
+
"options": {
|
|
413
|
+
"legend": { "calcs": ["mean", "max"], "displayMode": "table", "placement": "bottom", "showLegend": true },
|
|
414
|
+
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
415
|
+
},
|
|
416
|
+
"targets": [
|
|
417
|
+
{
|
|
418
|
+
"datasource": { "type": "prometheus", "uid": "prometheus" },
|
|
419
|
+
"expr": "pg_stat_database_numbackends{datname=~\"postgres|n8n\"}",
|
|
420
|
+
"legendFormat": "{{datname}}",
|
|
421
|
+
"refId": "A"
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"title": "Connections Over Time",
|
|
425
|
+
"type": "timeseries"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"collapsed": false,
|
|
429
|
+
"gridPos": { "h": 1, "w": 24, "x": 0, "y": 17 },
|
|
430
|
+
"id": 102,
|
|
431
|
+
"title": "Logs",
|
|
432
|
+
"type": "row"
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"datasource": { "type": "loki", "uid": "loki" },
|
|
436
|
+
"fieldConfig": {
|
|
437
|
+
"defaults": {
|
|
438
|
+
"color": { "mode": "palette-classic" },
|
|
439
|
+
"custom": {
|
|
440
|
+
"axisCenteredZero": false,
|
|
441
|
+
"axisColorMode": "text",
|
|
442
|
+
"axisLabel": "",
|
|
443
|
+
"axisPlacement": "auto",
|
|
444
|
+
"barAlignment": 0,
|
|
445
|
+
"drawStyle": "bars",
|
|
446
|
+
"fillOpacity": 100,
|
|
447
|
+
"gradientMode": "none",
|
|
448
|
+
"hideFrom": { "legend": false, "tooltip": false, "viz": false },
|
|
449
|
+
"lineInterpolation": "linear",
|
|
450
|
+
"lineWidth": 1,
|
|
451
|
+
"pointSize": 5,
|
|
452
|
+
"scaleDistribution": { "type": "linear" },
|
|
453
|
+
"showPoints": "never",
|
|
454
|
+
"spanNulls": false,
|
|
455
|
+
"stacking": { "group": "A", "mode": "normal" },
|
|
456
|
+
"thresholdsStyle": { "mode": "off" }
|
|
457
|
+
},
|
|
458
|
+
"mappings": [],
|
|
459
|
+
"thresholds": { "mode": "absolute", "steps": [{ "color": "green", "value": null }] },
|
|
460
|
+
"unit": "short"
|
|
461
|
+
},
|
|
462
|
+
"overrides": [
|
|
463
|
+
{ "matcher": { "id": "byName", "options": "error" }, "properties": [{ "id": "color", "value": { "fixedColor": "red", "mode": "fixed" } }] },
|
|
464
|
+
{ "matcher": { "id": "byName", "options": "warn" }, "properties": [{ "id": "color", "value": { "fixedColor": "yellow", "mode": "fixed" } }] },
|
|
465
|
+
{ "matcher": { "id": "byName", "options": "info" }, "properties": [{ "id": "color", "value": { "fixedColor": "green", "mode": "fixed" } }] },
|
|
466
|
+
{ "matcher": { "id": "byName", "options": "debug" }, "properties": [{ "id": "color", "value": { "fixedColor": "blue", "mode": "fixed" } }] }
|
|
467
|
+
]
|
|
468
|
+
},
|
|
469
|
+
"gridPos": { "h": 5, "w": 24, "x": 0, "y": 18 },
|
|
470
|
+
"id": 10,
|
|
471
|
+
"options": {
|
|
472
|
+
"legend": { "calcs": [], "displayMode": "list", "placement": "right", "showLegend": true },
|
|
473
|
+
"tooltip": { "mode": "multi", "sort": "desc" }
|
|
474
|
+
},
|
|
475
|
+
"targets": [
|
|
476
|
+
{
|
|
477
|
+
"datasource": { "type": "loki", "uid": "loki" },
|
|
478
|
+
"expr": "sum by (level) (count_over_time({service=~\".+\"} | level=~\".+\" [$__interval]))",
|
|
479
|
+
"legendFormat": "{{level}}",
|
|
480
|
+
"refId": "A"
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"title": "Log Volume by Level",
|
|
484
|
+
"type": "timeseries"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"datasource": { "type": "loki", "uid": "loki" },
|
|
488
|
+
"gridPos": { "h": 10, "w": 24, "x": 0, "y": 23 },
|
|
489
|
+
"id": 11,
|
|
490
|
+
"options": {
|
|
491
|
+
"dedupStrategy": "none",
|
|
492
|
+
"enableLogDetails": true,
|
|
493
|
+
"prettifyLogMessage": false,
|
|
494
|
+
"showCommonLabels": false,
|
|
495
|
+
"showLabels": true,
|
|
496
|
+
"showTime": true,
|
|
497
|
+
"sortOrder": "Descending",
|
|
498
|
+
"wrapLogMessage": true
|
|
499
|
+
},
|
|
500
|
+
"targets": [
|
|
501
|
+
{
|
|
502
|
+
"datasource": { "type": "loki", "uid": "loki" },
|
|
503
|
+
"expr": "{service=~\".+\"} |~ `(?i)(error|err|panic|fatal|exception|fail)`",
|
|
504
|
+
"refId": "A"
|
|
505
|
+
}
|
|
506
|
+
],
|
|
507
|
+
"title": "Recent Errors & Warnings",
|
|
508
|
+
"type": "logs"
|
|
509
|
+
}
|
|
510
|
+
],
|
|
511
|
+
"refresh": "30s",
|
|
512
|
+
"schemaVersion": 38,
|
|
513
|
+
"style": "dark",
|
|
514
|
+
"tags": ["{{PROJECT_NAME}}"],
|
|
515
|
+
"templating": { "list": [] },
|
|
516
|
+
"time": { "from": "now-1h", "to": "now" },
|
|
517
|
+
"timepicker": {},
|
|
518
|
+
"timezone": "",
|
|
519
|
+
"title": "{{PROJECT_NAME}} Overview",
|
|
520
|
+
"uid": "{{PROJECT_NAME}}-overview",
|
|
521
|
+
"version": 2,
|
|
522
|
+
"weekStart": ""
|
|
523
|
+
}
|