fast2dev 1.0.0__py3-none-any.whl

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.
Files changed (543) hide show
  1. f2dev/__init__.py +1 -0
  2. f2dev/__main__.py +5 -0
  3. f2dev/_bundle/platform/.dockerignore +80 -0
  4. f2dev/_bundle/platform/.gitignore +82 -0
  5. f2dev/_bundle/platform/LICENSE +202 -0
  6. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/template_values.yaml +1731 -0
  7. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/Chart.yaml +9 -0
  8. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-airflow-deploy.yaml +60 -0
  9. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-bi-sync.yaml +46 -0
  10. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-checkout.yaml +49 -0
  11. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-console-sync.yaml +41 -0
  12. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-label.yaml +48 -0
  13. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-run.yaml +43 -0
  14. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-e2e-teardown.yaml +47 -0
  15. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-governance.yaml +40 -0
  16. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-lint.yaml +37 -0
  17. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-notify.yaml +32 -0
  18. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-quality.yaml +38 -0
  19. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-refresh.yaml +36 -0
  20. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-supersede.yaml +30 -0
  21. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/block-tags.yaml +44 -0
  22. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-branch.yaml +138 -0
  23. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-main.yaml +150 -0
  24. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/files/pipeline-pr.yaml +184 -0
  25. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/NOTES.txt +18 -0
  26. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/settings-configmap.yaml +14 -0
  27. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/templates/workflowtemplates.yaml +31 -0
  28. f2dev/_bundle/platform/charts/data_services_charts/argo_workflows/workflow_templates/values.yaml +41 -0
  29. f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/github/template_github_values.yaml +436 -0
  30. f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/github/template_github_values_extra.yaml +49 -0
  31. f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/gitlab/template_gitlab_values.yaml +551 -0
  32. f2dev/_bundle/platform/charts/data_services_charts/cicd_workload_runner/gitlab/template_gitlab_values_extra.yaml +9 -0
  33. f2dev/_bundle/platform/charts/data_services_charts/data_analysis/lightdash/template_values.yaml +359 -0
  34. f2dev/_bundle/platform/charts/data_services_charts/data_analysis/metabase/template_values.yaml +384 -0
  35. f2dev/_bundle/platform/charts/data_services_charts/data_analysis/superset/template_values.yaml +1562 -0
  36. f2dev/_bundle/platform/charts/data_services_charts/data_analysis/template_values.yaml +269 -0
  37. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/.helmignore +15 -0
  38. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/Chart.yaml +20 -0
  39. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/template_values.yaml.j2 +175 -0
  40. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/NOTES.txt +19 -0
  41. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/_helpers.tpl +50 -0
  42. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/cicd-rbac.yaml +30 -0
  43. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/configmap.yaml +142 -0
  44. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/extras.yaml +14 -0
  45. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/ingress.yaml +69 -0
  46. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/promtail-configmap.yaml +68 -0
  47. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/secret.yaml +31 -0
  48. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/service.yaml +15 -0
  49. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/serviceaccount.yaml +12 -0
  50. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/statefulset.yaml +276 -0
  51. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/valkey.yaml +113 -0
  52. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/templates/warehouse-stats-cronjob.yaml +107 -0
  53. f2dev/_bundle/platform/charts/data_services_charts/data_control_plane/values.yaml +828 -0
  54. f2dev/_bundle/platform/charts/data_services_charts/data_dbt_server/template_values.yaml +385 -0
  55. f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_dh_prerequisites_values.yaml +118 -0
  56. f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_dh_values.yaml +1671 -0
  57. f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_kafka_values.yaml +112 -0
  58. f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_opensearch_values.yaml +662 -0
  59. f2dev/_bundle/platform/charts/data_services_charts/data_governance/template_values.yaml +738 -0
  60. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/Chart.yaml +6 -0
  61. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/files/argo-openapi.json +681 -0
  62. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/_helpers.tpl +17 -0
  63. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/argo-rbac.yaml +35 -0
  64. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/backends.yaml +327 -0
  65. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/templates/gateway.yaml +150 -0
  66. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/hub/values.yaml +91 -0
  67. f2dev/_bundle/platform/charts/data_services_charts/data_mcp_hub/template_values.yaml +142 -0
  68. f2dev/_bundle/platform/charts/data_services_charts/data_modeling/template_values.yaml +1167 -0
  69. f2dev/_bundle/platform/charts/data_services_charts/data_modeling/template_values_extra.yaml +99 -0
  70. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/Dockerfile +10 -0
  71. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/build.sh +38 -0
  72. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/cleanup.py +452 -0
  73. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/airflow-cleanup/requirements.txt +3 -0
  74. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/docs/keycloak-oidc-setup.md +106 -0
  75. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/template_values.yaml +5536 -0
  76. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/template_values_extra.yaml +379 -0
  77. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/configmap.yaml +459 -0
  78. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/fast2dev_auth.py +285 -0
  79. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/fast2dev_mcp_plugin.py +24 -0
  80. f2dev/_bundle/platform/charts/data_services_charts/data_orchestration/webserver-config/webserver_config.py +130 -0
  81. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/Dockerfile +10 -0
  82. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/build.sh +38 -0
  83. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/cleanup.py +749 -0
  84. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/k8s/configmap.yaml +24 -0
  85. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/k8s/cronjob.yaml +137 -0
  86. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte-cleanup/requirements.txt +3 -0
  87. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/.helmignore +26 -0
  88. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/Chart.lock +3 -0
  89. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/Chart.yaml +15 -0
  90. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/README.md +243 -0
  91. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/NOTES.txt +31 -0
  92. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/_helpers.tpl +245 -0
  93. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/_images.tpl +17 -0
  94. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-auth-secret.yaml +35 -0
  95. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-bootloader/bootloader-secrets.yaml +19 -0
  96. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-bootloader/pod.yaml +126 -0
  97. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-connector-rollout-worker/deployment.yaml +171 -0
  98. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-cron/cron-secrets.yaml +19 -0
  99. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-cron/deployment.yaml +149 -0
  100. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-db.yaml +88 -0
  101. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/_helpers.tpl +111 -0
  102. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/deployment.yaml +169 -0
  103. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/hpa.yaml +23 -0
  104. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/pdb.yaml +17 -0
  105. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/service.yaml +25 -0
  106. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-direct-job-runner/serviceaccount.yaml +10 -0
  107. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-featureflag-server/deployment.yaml +161 -0
  108. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-featureflag-server/service.yaml +25 -0
  109. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-keycloak/service.yaml +62 -0
  110. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-keycloak/statefulset.yaml +182 -0
  111. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/_helpers.tpl +54 -0
  112. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/deployment.yaml +152 -0
  113. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/service.yaml +23 -0
  114. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-manifest-server/serviceaccount.yaml +10 -0
  115. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-metrics/deployment.yaml +124 -0
  116. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-server/deployment.yaml +227 -0
  117. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-server/service.yaml +29 -0
  118. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-stigg-sidecar/deployment.yaml +184 -0
  119. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-stigg-sidecar/service.yaml +21 -0
  120. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/configmap.yaml +55 -0
  121. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/deployment.yaml +220 -0
  122. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal/service.yaml +21 -0
  123. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal-ui/deployment.yaml +122 -0
  124. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-temporal-ui/service.yaml +23 -0
  125. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/deployment.yaml +146 -0
  126. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/ingress.yaml +63 -0
  127. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-webapp/service.yaml +32 -0
  128. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-worker/deployment.yaml +229 -0
  129. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-api-server/deployment.yaml +191 -0
  130. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-api-server/service.yaml +25 -0
  131. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-launcher/deployment.yaml +232 -0
  132. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/airbyte-workload-launcher/jobs-secrets.yaml +21 -0
  133. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_auth.tpl +944 -0
  134. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_aws.tpl +109 -0
  135. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_cluster.tpl +82 -0
  136. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_common.tpl +370 -0
  137. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connector.tpl +58 -0
  138. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connectorRollout.tpl +141 -0
  139. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_connectorRolloutWorker.tpl +56 -0
  140. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_cron.tpl +62 -0
  141. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_customerio.tpl +56 -0
  142. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_database.tpl +375 -0
  143. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_dataplaneGroups.tpl +38 -0
  144. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_directJobRunner.tpl +122 -0
  145. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_featureFlags.tpl +126 -0
  146. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_java.tpl +38 -0
  147. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_jobs.tpl +422 -0
  148. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_keycloak.tpl +542 -0
  149. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_logging.tpl +38 -0
  150. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_metrics.tpl +214 -0
  151. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_micronaut.tpl +43 -0
  152. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_minio.tpl +64 -0
  153. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_secretsManager.tpl +628 -0
  154. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_server.tpl +533 -0
  155. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_shopify.tpl +83 -0
  156. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_stigg.tpl +157 -0
  157. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_storage.tpl +468 -0
  158. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_temporal.tpl +943 -0
  159. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_topology.tpl +98 -0
  160. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_tracking.tpl +82 -0
  161. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_webapp.tpl +38 -0
  162. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_worker.tpl +366 -0
  163. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloadApiServer.tpl +62 -0
  164. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloadLauncher.tpl +395 -0
  165. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/config/_workloads.tpl +770 -0
  166. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/env-configmap.yaml +62 -0
  167. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/gcs-log-creds-secret.yaml +19 -0
  168. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/ingress.yaml +69 -0
  169. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/minio.yaml +161 -0
  170. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/secret.yaml +31 -0
  171. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/serviceaccount.yaml +50 -0
  172. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/telemetry-configmap.yaml +32 -0
  173. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/templates/tests/test-webapp.yaml +34 -0
  174. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte/values.yaml +3158 -0
  175. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/.helmignore +12 -0
  176. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/Chart.yaml +16 -0
  177. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/README.md +172 -0
  178. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/_helpers.tpl +42 -0
  179. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/deployment.yaml +105 -0
  180. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/externalsecret.yaml +23 -0
  181. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/pdb.yaml +15 -0
  182. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/templates/service.yaml +18 -0
  183. f2dev/_bundle/platform/charts/data_services_charts/data_replication/airbyte_chart/airbyte-metrics-fast2dev-ddp/values.yaml +97 -0
  184. f2dev/_bundle/platform/charts/data_services_charts/data_replication/feature-flags-configmap.yaml +16 -0
  185. f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_metrics_values.yaml +13 -0
  186. f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_oauth2proxy_values.yaml +1200 -0
  187. f2dev/_bundle/platform/charts/data_services_charts/data_replication/template_values.yaml +3255 -0
  188. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/Chart.yaml +7 -0
  189. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-client.yaml +27 -0
  190. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-master.yaml +38 -0
  191. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/hazelcast-worker.yaml +29 -0
  192. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_client_options +24 -0
  193. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_master_options +6 -0
  194. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/jvm_worker_options +6 -0
  195. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/log4j2.properties +109 -0
  196. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/conf/seatunnel.yaml +36 -0
  197. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/_helpers.tpl +70 -0
  198. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/configmap.yaml +11 -0
  199. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/deployment-master.yaml +120 -0
  200. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/deployment-worker.yaml +118 -0
  201. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/rbac.yaml +32 -0
  202. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/templates/services.yaml +33 -0
  203. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/seatunnel/values.yaml +101 -0
  204. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/template_oauth2proxy_values.yaml +196 -0
  205. f2dev/_bundle/platform/charts/data_services_charts/data_streaming/template_values.yaml +75 -0
  206. f2dev/_bundle/platform/charts/data_services_charts/object_storage_operator/template_values.yaml +506 -0
  207. f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/csi_driver_values.yaml +193 -0
  208. f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_pdns_webhook_values.yaml +91 -0
  209. f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_values.yaml +1777 -0
  210. f2dev/_bundle/platform/charts/infra_services_charts/cert_manager/template_values_extra.yaml +253 -0
  211. f2dev/_bundle/platform/charts/infra_services_charts/cluster_cleaner/template_values.yaml +57 -0
  212. f2dev/_bundle/platform/charts/infra_services_charts/external_dns/template_values.yaml +476 -0
  213. f2dev/_bundle/platform/charts/infra_services_charts/external_dns/template_values_extra.yaml +131 -0
  214. f2dev/_bundle/platform/charts/infra_services_charts/idp_sso_manager/realm_template.json +4785 -0
  215. f2dev/_bundle/platform/charts/infra_services_charts/idp_sso_manager/template_values.yaml +657 -0
  216. f2dev/_bundle/platform/charts/infra_services_charts/pvc_autoscaller/template_values.yaml +36 -0
  217. f2dev/_bundle/platform/charts/infra_services_charts/pvc_autoscaller/template_values_extra.yaml +352 -0
  218. f2dev/_bundle/platform/charts/infra_services_charts/secret_manager/template_values.yaml +1218 -0
  219. f2dev/_bundle/platform/charts/infra_services_charts/secret_manager/template_values_extra.yaml +845 -0
  220. f2dev/_bundle/platform/charts/infra_services_charts/secret_manager_operator/template_values.yaml +561 -0
  221. f2dev/_bundle/platform/charts/infra_services_charts/secret_manager_operator/template_values_extra.yaml +23 -0
  222. f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_alloy_events_values.yaml +59 -0
  223. f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_alloy_values.yaml +185 -0
  224. f2dev/_bundle/platform/charts/infra_services_charts/services_logs/template_loki_values.yaml +108 -0
  225. f2dev/_bundle/platform/charts/infra_services_charts/services_metrics/template_values.yaml +1530 -0
  226. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/00-main/.gitkeep +0 -0
  227. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/00-main/f2d-main.json +2871 -0
  228. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/.gitkeep +0 -0
  229. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-k8s-cluster.json +1751 -0
  230. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-microservices.json +1682 -0
  231. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-pvc-storage.json +1320 -0
  232. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/01-platform/f2d-service.json +1193 -0
  233. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/.gitkeep +0 -0
  234. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-cert-manager.json +755 -0
  235. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-keycloak.json +746 -0
  236. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-object-storage.json +881 -0
  237. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-postgresql.json +1590 -0
  238. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/02-infrastructure/f2d-traefik.json +1375 -0
  239. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/.gitkeep +0 -0
  240. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-cicd-workflows-trends.json +1916 -0
  241. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-cicd-workflows.json +1330 -0
  242. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-analysis.json +631 -0
  243. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-freshness.json +1362 -0
  244. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-governance.json +1958 -0
  245. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-modeling.json +764 -0
  246. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-orchestration-trends.json +2352 -0
  247. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-orchestration.json +1506 -0
  248. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-quality.json +1549 -0
  249. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-replication-trends.json +2799 -0
  250. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-replication.json +2153 -0
  251. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-streaming-trends.json +1536 -0
  252. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/03-data-services/f2d-data-streaming.json +1209 -0
  253. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse/.gitkeep +0 -0
  254. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse-bigquery/.gitkeep +0 -0
  255. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/04-data-warehouse-bigquery/f2d-bigquery.json +990 -0
  256. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/05-logs/.gitkeep +0 -0
  257. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/05-logs/f2d-logs.json +630 -0
  258. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/folders.yaml +17 -0
  259. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/dashboards/requirements.yaml +8 -0
  260. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/template_alerts_cm.yaml +2031 -0
  261. f2dev/_bundle/platform/charts/infra_services_charts/services_monitoring/template_values.yaml +1315 -0
  262. f2dev/_bundle/platform/charts/infra_services_charts/stackgres_postgres_db/template_values.yaml +550 -0
  263. f2dev/_bundle/platform/charts/infra_services_charts/stackgres_postgres_db/template_values_extra.yaml +742 -0
  264. f2dev/_bundle/platform/charts/infra_services_charts/traefik_lb/template_values.yaml +1758 -0
  265. f2dev/_bundle/platform/cli/README.md +866 -0
  266. f2dev/_bundle/platform/cli/__init__.py +42 -0
  267. f2dev/_bundle/platform/cli/__main__.py +17 -0
  268. f2dev/_bundle/platform/cli/cert_providers.py +369 -0
  269. f2dev/_bundle/platform/cli/command_record.py +144 -0
  270. f2dev/_bundle/platform/cli/config/data_services_config.json +217 -0
  271. f2dev/_bundle/platform/cli/config/environment_profiles.yaml +183 -0
  272. f2dev/_bundle/platform/cli/config/images.json +129 -0
  273. f2dev/_bundle/platform/cli/config/infrastructure_services_config.json +141 -0
  274. f2dev/_bundle/platform/cli/config.py +252 -0
  275. f2dev/_bundle/platform/cli/deployment_configuration_aws_example.yaml +117 -0
  276. f2dev/_bundle/platform/cli/deployment_configuration_gcp_example.yaml +130 -0
  277. f2dev/_bundle/platform/cli/deployment_configuration_onprem_example.yaml +71 -0
  278. f2dev/_bundle/platform/cli/destroy.py +677 -0
  279. f2dev/_bundle/platform/cli/dns_check.py +27 -0
  280. f2dev/_bundle/platform/cli/dns_providers.py +405 -0
  281. f2dev/_bundle/platform/cli/exit_codes.py +32 -0
  282. f2dev/_bundle/platform/cli/fixers.py +56 -0
  283. f2dev/_bundle/platform/cli/generate_only.py +336 -0
  284. f2dev/_bundle/platform/cli/health_report.py +114 -0
  285. f2dev/_bundle/platform/cli/logging.py +206 -0
  286. f2dev/_bundle/platform/cli/main.py +5293 -0
  287. f2dev/_bundle/platform/cli/precheck.py +1523 -0
  288. f2dev/_bundle/platform/cli/prerequisites/README.md +208 -0
  289. f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.bat +107 -0
  290. f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.ps1 +343 -0
  291. f2dev/_bundle/platform/cli/prerequisites/install-prerequisites.sh +207 -0
  292. f2dev/_bundle/platform/cli/prerequisites/linux/install-linux.sh +775 -0
  293. f2dev/_bundle/platform/cli/prerequisites/macos/install-macos.sh +634 -0
  294. f2dev/_bundle/platform/cli/prerequisites/requirements.txt +41 -0
  295. f2dev/_bundle/platform/cli/prerequisites/verify-prerequisites.ps1 +150 -0
  296. f2dev/_bundle/platform/cli/prerequisites/verify-prerequisites.sh +418 -0
  297. f2dev/_bundle/platform/cli/prerequisites/versions.yaml +43 -0
  298. f2dev/_bundle/platform/cli/prerequisites/windows/install-windows.ps1 +1005 -0
  299. f2dev/_bundle/platform/cli/restore.py +179 -0
  300. f2dev/_bundle/platform/cli/service_gates.py +160 -0
  301. f2dev/_bundle/platform/cli/state.py +332 -0
  302. f2dev/_bundle/platform/cli/wizard.py +782 -0
  303. f2dev/_bundle/platform/cli.py +235 -0
  304. f2dev/_bundle/platform/deployers/__init__.py +4 -0
  305. f2dev/_bundle/platform/deployers/base_deployer.py +8 -0
  306. f2dev/_bundle/platform/deployers/clouds/__init__.py +0 -0
  307. f2dev/_bundle/platform/deployers/clouds/aws_cloud.py +619 -0
  308. f2dev/_bundle/platform/deployers/clouds/azure_cloud.py +0 -0
  309. f2dev/_bundle/platform/deployers/clouds/google_cloud.py +785 -0
  310. f2dev/_bundle/platform/deployers/clouds/terragrunt_progress.py +56 -0
  311. f2dev/_bundle/platform/deployers/services/data_services/1.0_cicd_workload_runner.py +644 -0
  312. f2dev/_bundle/platform/deployers/services/data_services/12.0_control_plane.py +321 -0
  313. f2dev/_bundle/platform/deployers/services/data_services/13.0_data_mcp_hub.py +362 -0
  314. f2dev/_bundle/platform/deployers/services/data_services/2.0_object_storage_operator.py +416 -0
  315. f2dev/_bundle/platform/deployers/services/data_services/2.5_services_logs.py +482 -0
  316. f2dev/_bundle/platform/deployers/services/data_services/3.0_data_cicd_workflows.py +361 -0
  317. f2dev/_bundle/platform/deployers/services/data_services/4.0_data_replication.py +534 -0
  318. f2dev/_bundle/platform/deployers/services/data_services/4.5_data_streaming.py +303 -0
  319. f2dev/_bundle/platform/deployers/services/data_services/5.0_data_orchestration.py +760 -0
  320. f2dev/_bundle/platform/deployers/services/data_services/6.0_data_modeling.py +753 -0
  321. f2dev/_bundle/platform/deployers/services/data_services/7.0_data_governance.py +795 -0
  322. f2dev/_bundle/platform/deployers/services/data_services/8.0_data_analysis.py +587 -0
  323. f2dev/_bundle/platform/deployers/services/infra_services/1.0_secret_operator.py +467 -0
  324. f2dev/_bundle/platform/deployers/services/infra_services/10.0_cluster_pvc_autoscaller.py +500 -0
  325. f2dev/_bundle/platform/deployers/services/infra_services/2.0_cert_manager.py +963 -0
  326. f2dev/_bundle/platform/deployers/services/infra_services/3.0_external_dns.py +823 -0
  327. f2dev/_bundle/platform/deployers/services/infra_services/4.0_traefik_lb.py +604 -0
  328. f2dev/_bundle/platform/deployers/services/infra_services/5.0_stackgres_postgresql.py +652 -0
  329. f2dev/_bundle/platform/deployers/services/infra_services/6.0_services_metrics.py +515 -0
  330. f2dev/_bundle/platform/deployers/services/infra_services/7.0_services_monitoring.py +787 -0
  331. f2dev/_bundle/platform/deployers/services/infra_services/8.0_cluster_cleaner.py +439 -0
  332. f2dev/_bundle/platform/deployers/services/infra_services/9.0_idp_sso_manager.py +790 -0
  333. f2dev/_bundle/platform/readme.md +47 -0
  334. f2dev/_bundle/platform/requirements.txt +14 -0
  335. f2dev/_bundle/platform/terraform/aws_cloud/templates/backend.tf_template +10 -0
  336. f2dev/_bundle/platform/terraform/aws_cloud/templates/defaults.yaml_template +11 -0
  337. f2dev/_bundle/platform/terraform/aws_cloud/templates/env.yaml_template +2 -0
  338. f2dev/_bundle/platform/terraform/aws_cloud/templates/root.hcl_advanced_template +134 -0
  339. f2dev/_bundle/platform/terraform/aws_cloud/templates/root.hcl_basic_template +134 -0
  340. f2dev/_bundle/platform/terraform/aws_cloud/templates/terragrunt.hcl_advanced_template +134 -0
  341. f2dev/_bundle/platform/terraform/aws_cloud/templates/terragrunt.hcl_basic_template +134 -0
  342. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/01-apps-vpc/terragrunt.hcl +26 -0
  343. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/02-create-dns-ns-record/terragrunt.hcl +16 -0
  344. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/03-eks-cluster/terragrunt.hcl +21 -0
  345. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/04-external_dns_sa/terragrunt.hcl +28 -0
  346. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/01-apps-vpc/terragrunt.hcl +25 -0
  347. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/02-eks-cluster/terragrunt.hcl +32 -0
  348. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/03-external-dns-irsa/terragrunt.hcl +34 -0
  349. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/04-cert-manager-irsa/terragrunt.hcl +34 -0
  350. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/05-create-dns-zone/terragrunt.hcl +22 -0
  351. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/06-create-dns-ns-record/terragrunt.hcl +44 -0
  352. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/bi-platform/empty.yaml +1 -0
  353. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/empty.yaml +1 -0
  354. f2dev/_bundle/platform/terraform/aws_cloud/terragrunt/env.hcl +2 -0
  355. f2dev/_bundle/platform/terraform/azure_cloud/README.md +3 -0
  356. f2dev/_bundle/platform/terraform/azure_cloud/templates/_keep_structure.txt +0 -0
  357. f2dev/_bundle/platform/terraform/google_cloud/README.md +20 -0
  358. f2dev/_bundle/platform/terraform/google_cloud/templates/backend.tf_template +7 -0
  359. f2dev/_bundle/platform/terraform/google_cloud/templates/defaults.yaml_template +12 -0
  360. f2dev/_bundle/platform/terraform/google_cloud/templates/env.yaml_template +2 -0
  361. f2dev/_bundle/platform/terraform/google_cloud/templates/root.hcl_advanced_template +114 -0
  362. f2dev/_bundle/platform/terraform/google_cloud/templates/root.hcl_basic_template +116 -0
  363. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/.gitignore +3 -0
  364. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/00-create-ou-folder/terragrunt.hcl +15 -0
  365. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/01-create-project/terragrunt.hcl +30 -0
  366. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/02-enable-apis/terragrunt.hcl +25 -0
  367. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/03-0-apps-vpc/terragrunt.hcl +134 -0
  368. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/04-external-ip-traefik/terragrunt.hcl +29 -0
  369. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/05-create-dns-zone/terragrunt.hcl +25 -0
  370. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/06-create-dns-ns-record/terragrunt.hcl +43 -0
  371. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/07-gke-cluster/terragrunt.hcl +103 -0
  372. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/08-dbt_deploy_sa/terragrunt.hcl +36 -0
  373. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/09-dbt_sa/terragrunt.hcl +40 -0
  374. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/10-cert_manager_sa/terragrunt.hcl +34 -0
  375. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/11-external_dns_sa/terragrunt.hcl +30 -0
  376. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/12-monitoring_sa/terragrunt.hcl +52 -0
  377. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/13-data_replication_sa/terragrunt.hcl +35 -0
  378. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/14-data_orchestration_sa/terragrunt.hcl +35 -0
  379. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/15-bi_data_sa/terragrunt.hcl +43 -0
  380. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/16-whitelist-external-ip-on-common/terragrunt.hcl +30 -0
  381. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/17-kubeconfig/terragrunt.hcl +23 -0
  382. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/bi-platform/18-data_streaming_sa/terragrunt.hcl +24 -0
  383. f2dev/_bundle/platform/terraform/google_cloud/terragrunt/empty.yaml +1 -0
  384. f2dev/_bundle/platform/utils/__init__.py +0 -0
  385. f2dev/_bundle/platform/utils/customer_data_platform_repository_operator.py +1098 -0
  386. f2dev/_bundle/platform/utils/customer_secret_manager_operations.py +1635 -0
  387. f2dev/_bundle/platform/utils/environment_profiles.py +58 -0
  388. f2dev/_bundle/platform/utils/helm_utils.py +215 -0
  389. f2dev/_bundle/platform/utils/infrastructure_deployment_operator.py +1532 -0
  390. f2dev/_bundle/platform/utils/keycloak_realm_reconcile.py +320 -0
  391. f2dev/_bundle/platform/utils/kubeconfig_fixer.py +265 -0
  392. f2dev/_bundle/platform/utils/raw_extras.py +34 -0
  393. f2dev/_bundle/platform/utils/readiness.py +330 -0
  394. f2dev/_bundle/platform/utils/secret_structure_upgrade.py +194 -0
  395. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/.gitignore +7 -0
  396. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/README.md +33 -0
  397. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/analyses/.gitkeep +0 -0
  398. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/dbt_project.yml +52 -0
  399. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/.gitkeep +0 -0
  400. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/fast2dev_bq_time_zones.sql +12 -0
  401. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/macros/fast2dev_monitoring_grain.sql +23 -0
  402. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_daily_spend.sql +19 -0
  403. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_daily_spend.yml +25 -0
  404. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_model_costs_daily.sql +16 -0
  405. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_model_costs_daily.yml +24 -0
  406. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_storage_by_dataset.sql +12 -0
  407. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_storage_by_dataset.yml +21 -0
  408. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_user_costs_daily.sql +14 -0
  409. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_user_costs_daily.yml +22 -0
  410. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_kpi.sql +52 -0
  411. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_kpi.yml +42 -0
  412. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_spend.sql +74 -0
  413. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/marts/fast2dev_bq_weekly_spend.yml +49 -0
  414. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/sources/billing_export.yml +9 -0
  415. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/staging/fast2dev_bq_billing_export.sql +9 -0
  416. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/models/staging/fast2dev_bq_billing_export.yml +4 -0
  417. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/packages.yml +5 -0
  418. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/profiles.yml +15 -0
  419. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/scripts/run_monitoring.py +201 -0
  420. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/seeds/.gitkeep +0 -0
  421. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/snapshots/.gitkeep +0 -0
  422. f2dev/_bundle/platform/utils/templates/control_plane_warehouse_stats_template/bigquery_usage/tests/.gitkeep +0 -0
  423. f2dev/_bundle/platform/utils/templates/dry_run/gcp_sa.json +12 -0
  424. f2dev/_bundle/platform/utils/templates/dry_run/kubeconfig.yaml +18 -0
  425. f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/README.MD +50 -0
  426. f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/dags/dbt/README.MD +47 -0
  427. f2dev/_bundle/platform/utils/templates/git_repo_templates/data_orchestrator/repository_structure/dags/fast2dev_healthcheck.py_template_airflow_3.x +158 -0
  428. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/bitbucket/bitbucket-pipelines.yml_template +144 -0
  429. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/PR_VALIDATION.md +52 -0
  430. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/pull_request_template.md +48 -0
  431. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/argo-workflows.yml_template +143 -0
  432. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/pr-agent.yml +30 -0
  433. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitea/.gitea/workflows/validate-pr-description.yml +38 -0
  434. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/PR_VALIDATION.md +52 -0
  435. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/pull_request_template.md +48 -0
  436. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/argo-workflows.yml_template +143 -0
  437. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/pr-agent.yml +37 -0
  438. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/github/.github/workflows/validate-pr-description.yml +157 -0
  439. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab/PR_VALIDATION.md +43 -0
  440. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab/merge_request_templates/Default.md +48 -0
  441. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/gitlab/.gitlab-ci.yml_template +181 -0
  442. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/.gitignore +21 -0
  443. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/.pr_agent.toml +82 -0
  444. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/AGENTS.md +126 -0
  445. f2dev/_bundle/platform/utils/templates/git_repo_templates/dbt_data_model/repository_structure/README.MD +101 -0
  446. f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/DR.md +341 -0
  447. f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/README.md.j2 +81 -0
  448. f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/decrypt_files.py +331 -0
  449. f2dev/_bundle/platform/utils/templates/git_repo_templates/infrastructure_deployment_files/encrypt_files.py +321 -0
  450. f2dev/_bundle/platform/utils/templates/secret_structure_template/customer_vault_structure.json +502 -0
  451. f2dev/_bundle/platform/utils/vault_structure_sync.py +96 -0
  452. f2dev/_bundle/terraform-modules/README.md +12 -0
  453. f2dev/_bundle/terraform-modules/aws_cloud/README.md +7 -0
  454. f2dev/_bundle/terraform-modules/aws_cloud/eks/addons-roles.tf +298 -0
  455. f2dev/_bundle/terraform-modules/aws_cloud/eks/main.tf +313 -0
  456. f2dev/_bundle/terraform-modules/aws_cloud/eks/outputs.tf +3 -0
  457. f2dev/_bundle/terraform-modules/aws_cloud/eks/policies/lb-controller-policy.json +219 -0
  458. f2dev/_bundle/terraform-modules/aws_cloud/eks/provider.tf +36 -0
  459. f2dev/_bundle/terraform-modules/aws_cloud/eks/variables.tf +107 -0
  460. f2dev/_bundle/terraform-modules/aws_cloud/eks/versions.tf +10 -0
  461. f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/main.tf +25 -0
  462. f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/provider.tf +17 -0
  463. f2dev/_bundle/terraform-modules/aws_cloud/gcp_aws_zone/variables.tf +41 -0
  464. f2dev/_bundle/terraform-modules/aws_cloud/vpc/main.tf +34 -0
  465. f2dev/_bundle/terraform-modules/aws_cloud/vpc/outputs.tf +44 -0
  466. f2dev/_bundle/terraform-modules/aws_cloud/vpc/provider.tf +12 -0
  467. f2dev/_bundle/terraform-modules/aws_cloud/vpc/variables.tf +118 -0
  468. f2dev/_bundle/terraform-modules/aws_cloud/vpc/versions.tf +10 -0
  469. f2dev/_bundle/terraform-modules/azure_cloud/README.md +3 -0
  470. f2dev/_bundle/terraform-modules/google_cloud/README.md +17 -0
  471. f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/main.tf +8 -0
  472. f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/providers.tf +6 -0
  473. f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/variables.tf +17 -0
  474. f2dev/_bundle/terraform-modules/google_cloud/artifact-registry/versions.tf +8 -0
  475. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/main.tf +24 -0
  476. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/outputs.tf +25 -0
  477. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/providers.tf +7 -0
  478. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/variables.tf +17 -0
  479. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns/versions.tf +9 -0
  480. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/main.tf +38 -0
  481. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/variables.tf +73 -0
  482. f2dev/_bundle/terraform-modules/google_cloud/cloud-dns-recordset/versions.tf +39 -0
  483. f2dev/_bundle/terraform-modules/google_cloud/composer/main.tf +213 -0
  484. f2dev/_bundle/terraform-modules/google_cloud/composer/outputs.tf +31 -0
  485. f2dev/_bundle/terraform-modules/google_cloud/composer/provider.tf +4 -0
  486. f2dev/_bundle/terraform-modules/google_cloud/composer/variables.tf +192 -0
  487. f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/main.tf +29 -0
  488. f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/output.tf +4 -0
  489. f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/providers.tf +6 -0
  490. f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/variables.tf +40 -0
  491. f2dev/_bundle/terraform-modules/google_cloud/create-ou-folder/versions.tf +8 -0
  492. f2dev/_bundle/terraform-modules/google_cloud/create-project/main.tf +18 -0
  493. f2dev/_bundle/terraform-modules/google_cloud/create-project/output.tf +8 -0
  494. f2dev/_bundle/terraform-modules/google_cloud/create-project/providers.tf +6 -0
  495. f2dev/_bundle/terraform-modules/google_cloud/create-project/variables.tf +27 -0
  496. f2dev/_bundle/terraform-modules/google_cloud/create-project/versions.tf +9 -0
  497. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/README.md +188 -0
  498. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/main.tf +135 -0
  499. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/output.tf +16 -0
  500. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/providers.tf +6 -0
  501. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/variables.tf +54 -0
  502. f2dev/_bundle/terraform-modules/google_cloud/deploy_sa/versions.tf +17 -0
  503. f2dev/_bundle/terraform-modules/google_cloud/enable_apis/main.tf +14 -0
  504. f2dev/_bundle/terraform-modules/google_cloud/enable_apis/provider.tf +7 -0
  505. f2dev/_bundle/terraform-modules/google_cloud/enable_apis/variables.tf +13 -0
  506. f2dev/_bundle/terraform-modules/google_cloud/enable_apis/versions.tf +10 -0
  507. f2dev/_bundle/terraform-modules/google_cloud/external-ip/README.md +89 -0
  508. f2dev/_bundle/terraform-modules/google_cloud/external-ip/main.tf +17 -0
  509. f2dev/_bundle/terraform-modules/google_cloud/external-ip/outputs.tf +19 -0
  510. f2dev/_bundle/terraform-modules/google_cloud/external-ip/variables.tf +43 -0
  511. f2dev/_bundle/terraform-modules/google_cloud/fw-add/main.tf +24 -0
  512. f2dev/_bundle/terraform-modules/google_cloud/fw-add/providers.tf +6 -0
  513. f2dev/_bundle/terraform-modules/google_cloud/fw-add/variables.tf +37 -0
  514. f2dev/_bundle/terraform-modules/google_cloud/fw-add/versions.tf +9 -0
  515. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/README.md +10 -0
  516. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/main.tf +459 -0
  517. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/outputs.tf +44 -0
  518. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/provider.tf +19 -0
  519. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/variables.tf +354 -0
  520. f2dev/_bundle/terraform-modules/google_cloud/gke-cluster/versions.tf +22 -0
  521. f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/README.md +40 -0
  522. f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/main.tf +54 -0
  523. f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/outputs.tf +10 -0
  524. f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/variables.tf +24 -0
  525. f2dev/_bundle/terraform-modules/google_cloud/kubeconfig/versions.tf +10 -0
  526. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/README.md +47 -0
  527. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/main.tf +51 -0
  528. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/README.md +103 -0
  529. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/main.tf +71 -0
  530. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/outputs.tf +71 -0
  531. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/variables.tf +82 -0
  532. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/net-address/versions.tf +27 -0
  533. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/outputs.tf +35 -0
  534. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/provider.tf +4 -0
  535. f2dev/_bundle/terraform-modules/google_cloud/shared-vpc/variables.tf +237 -0
  536. f2dev/_bundle/terraform-modules/oracle_cloud/README.md +3 -0
  537. f2dev/launcher.py +153 -0
  538. fast2dev-1.0.0.dist-info/METADATA +201 -0
  539. fast2dev-1.0.0.dist-info/RECORD +543 -0
  540. fast2dev-1.0.0.dist-info/WHEEL +4 -0
  541. fast2dev-1.0.0.dist-info/entry_points.txt +2 -0
  542. fast2dev-1.0.0.dist-info/licenses/LICENSE +202 -0
  543. fast2dev-1.0.0.dist-info/licenses/NOTICE +6 -0
@@ -0,0 +1,1590 @@
1
+ {
2
+ "uid": "f2d-postgresql",
3
+ "title": "PostgreSQL (StackGres)",
4
+ "description": "Shared PostgreSQL cluster used by every platform service (Airflow, Airbyte, Temporal, Keycloak, DataHub, BI, control plane). Each service has its own database, so per-database panels show who is loading the cluster.",
5
+ "tags": [
6
+ "fast2dev",
7
+ "infrastructure",
8
+ "database"
9
+ ],
10
+ "editable": true,
11
+ "graphTooltip": 1,
12
+ "refresh": "1m",
13
+ "schemaVersion": 41,
14
+ "time": {
15
+ "from": "now-6h",
16
+ "to": "now"
17
+ },
18
+ "timezone": "browser",
19
+ "templating": {
20
+ "list": [
21
+ {
22
+ "name": "cluster",
23
+ "label": "Cluster",
24
+ "type": "query",
25
+ "hide": 0,
26
+ "datasource": {
27
+ "type": "prometheus",
28
+ "uid": "prometheus"
29
+ },
30
+ "definition": "label_values(pg_up, cluster)",
31
+ "query": {
32
+ "query": "label_values(pg_up, cluster)",
33
+ "refId": "v"
34
+ },
35
+ "refresh": 2,
36
+ "regex": "",
37
+ "sort": 1,
38
+ "multi": true,
39
+ "includeAll": true,
40
+ "current": {
41
+ "text": [
42
+ "All"
43
+ ],
44
+ "value": [
45
+ "$__all"
46
+ ]
47
+ }
48
+ },
49
+ {
50
+ "name": "database",
51
+ "label": "Database",
52
+ "type": "query",
53
+ "hide": 0,
54
+ "datasource": {
55
+ "type": "prometheus",
56
+ "uid": "prometheus"
57
+ },
58
+ "definition": "label_values(pg_stat_database_numbackends{cluster=~\"$cluster\", datname!~\"template.*\"}, datname)",
59
+ "query": {
60
+ "query": "label_values(pg_stat_database_numbackends{cluster=~\"$cluster\", datname!~\"template.*\"}, datname)",
61
+ "refId": "v"
62
+ },
63
+ "refresh": 2,
64
+ "regex": "",
65
+ "sort": 1,
66
+ "multi": true,
67
+ "includeAll": true,
68
+ "current": {
69
+ "text": [
70
+ "All"
71
+ ],
72
+ "value": [
73
+ "$__all"
74
+ ]
75
+ }
76
+ }
77
+ ]
78
+ },
79
+ "panels": [
80
+ {
81
+ "type": "row",
82
+ "title": "Health",
83
+ "id": 2,
84
+ "collapsed": false,
85
+ "gridPos": {
86
+ "x": 0,
87
+ "y": 0,
88
+ "w": 24,
89
+ "h": 1
90
+ },
91
+ "panels": []
92
+ },
93
+ {
94
+ "type": "stat",
95
+ "title": "Instances up",
96
+ "id": 3,
97
+ "description": "",
98
+ "gridPos": {
99
+ "x": 0,
100
+ "y": 1,
101
+ "w": 3,
102
+ "h": 4
103
+ },
104
+ "datasource": {
105
+ "type": "prometheus",
106
+ "uid": "prometheus"
107
+ },
108
+ "targets": [
109
+ {
110
+ "refId": "A",
111
+ "datasource": {
112
+ "type": "prometheus",
113
+ "uid": "prometheus"
114
+ },
115
+ "expr": "sum(pg_up{cluster=~\"$cluster\"})",
116
+ "legendFormat": "",
117
+ "instant": true,
118
+ "range": false
119
+ }
120
+ ],
121
+ "fieldConfig": {
122
+ "defaults": {
123
+ "unit": "short",
124
+ "thresholds": {
125
+ "mode": "absolute",
126
+ "steps": [
127
+ {
128
+ "color": "red",
129
+ "value": null
130
+ },
131
+ {
132
+ "color": "green",
133
+ "value": 1
134
+ }
135
+ ]
136
+ },
137
+ "mappings": [],
138
+ "noValue": "0"
139
+ },
140
+ "overrides": []
141
+ },
142
+ "options": {
143
+ "reduceOptions": {
144
+ "calcs": [
145
+ "lastNotNull"
146
+ ],
147
+ "fields": "",
148
+ "values": false
149
+ },
150
+ "colorMode": "background",
151
+ "graphMode": "none",
152
+ "textMode": "value",
153
+ "justifyMode": "center",
154
+ "orientation": "auto"
155
+ }
156
+ },
157
+ {
158
+ "type": "stat",
159
+ "title": "Primary",
160
+ "id": 4,
161
+ "description": "Exactly one primary is expected. Zero means a failover is in progress or failed.",
162
+ "gridPos": {
163
+ "x": 3,
164
+ "y": 1,
165
+ "w": 3,
166
+ "h": 4
167
+ },
168
+ "datasource": {
169
+ "type": "prometheus",
170
+ "uid": "prometheus"
171
+ },
172
+ "targets": [
173
+ {
174
+ "refId": "A",
175
+ "datasource": {
176
+ "type": "prometheus",
177
+ "uid": "prometheus"
178
+ },
179
+ "expr": "count(pg_up{cluster=~\"$cluster\", role=\"primary\"} == 1)",
180
+ "legendFormat": "",
181
+ "instant": true,
182
+ "range": false
183
+ }
184
+ ],
185
+ "fieldConfig": {
186
+ "defaults": {
187
+ "unit": "short",
188
+ "thresholds": {
189
+ "mode": "absolute",
190
+ "steps": [
191
+ {
192
+ "color": "red",
193
+ "value": null
194
+ },
195
+ {
196
+ "color": "green",
197
+ "value": 1
198
+ }
199
+ ]
200
+ },
201
+ "mappings": [],
202
+ "noValue": "0"
203
+ },
204
+ "overrides": []
205
+ },
206
+ "options": {
207
+ "reduceOptions": {
208
+ "calcs": [
209
+ "lastNotNull"
210
+ ],
211
+ "fields": "",
212
+ "values": false
213
+ },
214
+ "colorMode": "background",
215
+ "graphMode": "none",
216
+ "textMode": "value",
217
+ "justifyMode": "center",
218
+ "orientation": "auto"
219
+ }
220
+ },
221
+ {
222
+ "type": "stat",
223
+ "title": "Replication lag",
224
+ "id": 5,
225
+ "description": "How far replicas are behind the primary. Only relevant in production (3 instances).",
226
+ "gridPos": {
227
+ "x": 6,
228
+ "y": 1,
229
+ "w": 3,
230
+ "h": 4
231
+ },
232
+ "datasource": {
233
+ "type": "prometheus",
234
+ "uid": "prometheus"
235
+ },
236
+ "targets": [
237
+ {
238
+ "refId": "A",
239
+ "datasource": {
240
+ "type": "prometheus",
241
+ "uid": "prometheus"
242
+ },
243
+ "expr": "max(pg_replication_lag_seconds{cluster=~\"$cluster\"})",
244
+ "legendFormat": "",
245
+ "instant": true,
246
+ "range": false
247
+ }
248
+ ],
249
+ "fieldConfig": {
250
+ "defaults": {
251
+ "unit": "s",
252
+ "thresholds": {
253
+ "mode": "absolute",
254
+ "steps": [
255
+ {
256
+ "color": "green",
257
+ "value": null
258
+ },
259
+ {
260
+ "color": "orange",
261
+ "value": 10
262
+ },
263
+ {
264
+ "color": "red",
265
+ "value": 60
266
+ }
267
+ ]
268
+ },
269
+ "mappings": [],
270
+ "noValue": "0"
271
+ },
272
+ "overrides": []
273
+ },
274
+ "options": {
275
+ "reduceOptions": {
276
+ "calcs": [
277
+ "lastNotNull"
278
+ ],
279
+ "fields": "",
280
+ "values": false
281
+ },
282
+ "colorMode": "background",
283
+ "graphMode": "none",
284
+ "textMode": "value",
285
+ "justifyMode": "center",
286
+ "orientation": "auto"
287
+ }
288
+ },
289
+ {
290
+ "type": "stat",
291
+ "title": "Connections used",
292
+ "id": 6,
293
+ "description": "",
294
+ "gridPos": {
295
+ "x": 9,
296
+ "y": 1,
297
+ "w": 3,
298
+ "h": 4
299
+ },
300
+ "datasource": {
301
+ "type": "prometheus",
302
+ "uid": "prometheus"
303
+ },
304
+ "targets": [
305
+ {
306
+ "refId": "A",
307
+ "datasource": {
308
+ "type": "prometheus",
309
+ "uid": "prometheus"
310
+ },
311
+ "expr": "sum(pg_stat_activity_count{cluster=~\"$cluster\"}) / max(pg_settings_max_connections{cluster=~\"$cluster\"})",
312
+ "legendFormat": "",
313
+ "instant": true,
314
+ "range": false
315
+ }
316
+ ],
317
+ "fieldConfig": {
318
+ "defaults": {
319
+ "unit": "percentunit",
320
+ "thresholds": {
321
+ "mode": "absolute",
322
+ "steps": [
323
+ {
324
+ "color": "green",
325
+ "value": null
326
+ },
327
+ {
328
+ "color": "orange",
329
+ "value": 0.7
330
+ },
331
+ {
332
+ "color": "red",
333
+ "value": 0.9
334
+ }
335
+ ]
336
+ },
337
+ "mappings": [],
338
+ "noValue": "0"
339
+ },
340
+ "overrides": []
341
+ },
342
+ "options": {
343
+ "reduceOptions": {
344
+ "calcs": [
345
+ "lastNotNull"
346
+ ],
347
+ "fields": "",
348
+ "values": false
349
+ },
350
+ "colorMode": "background",
351
+ "graphMode": "none",
352
+ "textMode": "value",
353
+ "justifyMode": "center",
354
+ "orientation": "auto"
355
+ }
356
+ },
357
+ {
358
+ "type": "stat",
359
+ "title": "Cache hit ratio",
360
+ "id": 7,
361
+ "description": "Share of reads served from memory. Below 99% means shared_buffers is too small for the working set.",
362
+ "gridPos": {
363
+ "x": 12,
364
+ "y": 1,
365
+ "w": 3,
366
+ "h": 4
367
+ },
368
+ "datasource": {
369
+ "type": "prometheus",
370
+ "uid": "prometheus"
371
+ },
372
+ "targets": [
373
+ {
374
+ "refId": "A",
375
+ "datasource": {
376
+ "type": "prometheus",
377
+ "uid": "prometheus"
378
+ },
379
+ "expr": "sum(rate(pg_stat_database_blks_hit{cluster=~\"$cluster\", datname=~\"$database\"}[1h])) / (sum(rate(pg_stat_database_blks_hit{cluster=~\"$cluster\", datname=~\"$database\"}[1h])) + sum(rate(pg_stat_database_blks_read{cluster=~\"$cluster\", datname=~\"$database\"}[1h])))",
380
+ "legendFormat": "",
381
+ "instant": true,
382
+ "range": false
383
+ }
384
+ ],
385
+ "fieldConfig": {
386
+ "defaults": {
387
+ "unit": "percentunit",
388
+ "thresholds": {
389
+ "mode": "absolute",
390
+ "steps": [
391
+ {
392
+ "color": "red",
393
+ "value": null
394
+ },
395
+ {
396
+ "color": "orange",
397
+ "value": 0.9
398
+ },
399
+ {
400
+ "color": "green",
401
+ "value": 0.99
402
+ }
403
+ ]
404
+ },
405
+ "mappings": [],
406
+ "noValue": "0",
407
+ "decimals": 2
408
+ },
409
+ "overrides": []
410
+ },
411
+ "options": {
412
+ "reduceOptions": {
413
+ "calcs": [
414
+ "lastNotNull"
415
+ ],
416
+ "fields": "",
417
+ "values": false
418
+ },
419
+ "colorMode": "background",
420
+ "graphMode": "none",
421
+ "textMode": "value",
422
+ "justifyMode": "center",
423
+ "orientation": "auto"
424
+ }
425
+ },
426
+ {
427
+ "type": "stat",
428
+ "title": "Deadlocks in range",
429
+ "id": 8,
430
+ "description": "",
431
+ "gridPos": {
432
+ "x": 15,
433
+ "y": 1,
434
+ "w": 3,
435
+ "h": 4
436
+ },
437
+ "datasource": {
438
+ "type": "prometheus",
439
+ "uid": "prometheus"
440
+ },
441
+ "targets": [
442
+ {
443
+ "refId": "A",
444
+ "datasource": {
445
+ "type": "prometheus",
446
+ "uid": "prometheus"
447
+ },
448
+ "expr": "sum(increase(pg_stat_database_deadlocks{cluster=~\"$cluster\", datname=~\"$database\"}[$__range]))",
449
+ "legendFormat": "",
450
+ "instant": true,
451
+ "range": false
452
+ }
453
+ ],
454
+ "fieldConfig": {
455
+ "defaults": {
456
+ "unit": "short",
457
+ "thresholds": {
458
+ "mode": "absolute",
459
+ "steps": [
460
+ {
461
+ "color": "green",
462
+ "value": null
463
+ },
464
+ {
465
+ "color": "red",
466
+ "value": 1
467
+ }
468
+ ]
469
+ },
470
+ "mappings": [],
471
+ "noValue": "0",
472
+ "decimals": 0
473
+ },
474
+ "overrides": []
475
+ },
476
+ "options": {
477
+ "reduceOptions": {
478
+ "calcs": [
479
+ "lastNotNull"
480
+ ],
481
+ "fields": "",
482
+ "values": false
483
+ },
484
+ "colorMode": "background",
485
+ "graphMode": "none",
486
+ "textMode": "value",
487
+ "justifyMode": "center",
488
+ "orientation": "auto"
489
+ }
490
+ },
491
+ {
492
+ "type": "stat",
493
+ "title": "Longest transaction",
494
+ "id": 9,
495
+ "description": "Long open transactions block vacuum and hold locks. Over 30 min usually means a stuck client.",
496
+ "gridPos": {
497
+ "x": 18,
498
+ "y": 1,
499
+ "w": 3,
500
+ "h": 4
501
+ },
502
+ "datasource": {
503
+ "type": "prometheus",
504
+ "uid": "prometheus"
505
+ },
506
+ "targets": [
507
+ {
508
+ "refId": "A",
509
+ "datasource": {
510
+ "type": "prometheus",
511
+ "uid": "prometheus"
512
+ },
513
+ "expr": "max(pg_stat_activity_max_tx_duration{cluster=~\"$cluster\", datname=~\"$database\"})",
514
+ "legendFormat": "",
515
+ "instant": true,
516
+ "range": false
517
+ }
518
+ ],
519
+ "fieldConfig": {
520
+ "defaults": {
521
+ "unit": "s",
522
+ "thresholds": {
523
+ "mode": "absolute",
524
+ "steps": [
525
+ {
526
+ "color": "green",
527
+ "value": null
528
+ },
529
+ {
530
+ "color": "orange",
531
+ "value": 300
532
+ },
533
+ {
534
+ "color": "red",
535
+ "value": 1800
536
+ }
537
+ ]
538
+ },
539
+ "mappings": [],
540
+ "noValue": "0"
541
+ },
542
+ "overrides": []
543
+ },
544
+ "options": {
545
+ "reduceOptions": {
546
+ "calcs": [
547
+ "lastNotNull"
548
+ ],
549
+ "fields": "",
550
+ "values": false
551
+ },
552
+ "colorMode": "background",
553
+ "graphMode": "none",
554
+ "textMode": "value",
555
+ "justifyMode": "center",
556
+ "orientation": "auto"
557
+ }
558
+ },
559
+ {
560
+ "type": "stat",
561
+ "title": "Uptime",
562
+ "id": 10,
563
+ "description": "",
564
+ "gridPos": {
565
+ "x": 21,
566
+ "y": 1,
567
+ "w": 3,
568
+ "h": 4
569
+ },
570
+ "datasource": {
571
+ "type": "prometheus",
572
+ "uid": "prometheus"
573
+ },
574
+ "targets": [
575
+ {
576
+ "refId": "A",
577
+ "datasource": {
578
+ "type": "prometheus",
579
+ "uid": "prometheus"
580
+ },
581
+ "expr": "time() - max(pg_postmaster_start_time_seconds{cluster=~\"$cluster\"})",
582
+ "legendFormat": "",
583
+ "instant": true,
584
+ "range": false
585
+ }
586
+ ],
587
+ "fieldConfig": {
588
+ "defaults": {
589
+ "unit": "s",
590
+ "thresholds": {
591
+ "mode": "absolute",
592
+ "steps": [
593
+ {
594
+ "color": "blue",
595
+ "value": null
596
+ }
597
+ ]
598
+ },
599
+ "mappings": [],
600
+ "noValue": "0"
601
+ },
602
+ "overrides": []
603
+ },
604
+ "options": {
605
+ "reduceOptions": {
606
+ "calcs": [
607
+ "lastNotNull"
608
+ ],
609
+ "fields": "",
610
+ "values": false
611
+ },
612
+ "colorMode": "value",
613
+ "graphMode": "none",
614
+ "textMode": "value",
615
+ "justifyMode": "center",
616
+ "orientation": "auto"
617
+ }
618
+ },
619
+ {
620
+ "type": "row",
621
+ "title": "Per database",
622
+ "id": 11,
623
+ "collapsed": false,
624
+ "gridPos": {
625
+ "x": 0,
626
+ "y": 5,
627
+ "w": 24,
628
+ "h": 1
629
+ },
630
+ "panels": []
631
+ },
632
+ {
633
+ "type": "table",
634
+ "title": "Databases",
635
+ "id": 12,
636
+ "description": "Temp written: queries that spill to disk because work_mem is too small. High rollbacks usually mean application errors.",
637
+ "gridPos": {
638
+ "x": 0,
639
+ "y": 6,
640
+ "w": 24,
641
+ "h": 10
642
+ },
643
+ "datasource": {
644
+ "type": "prometheus",
645
+ "uid": "prometheus"
646
+ },
647
+ "targets": [
648
+ {
649
+ "refId": "A",
650
+ "datasource": {
651
+ "type": "prometheus",
652
+ "uid": "prometheus"
653
+ },
654
+ "expr": "sum by (datname) (pg_database_size_bytes{cluster=~\"$cluster\", datname=~\"$database\"})",
655
+ "legendFormat": "",
656
+ "instant": true,
657
+ "range": false,
658
+ "format": "table"
659
+ },
660
+ {
661
+ "refId": "B",
662
+ "datasource": {
663
+ "type": "prometheus",
664
+ "uid": "prometheus"
665
+ },
666
+ "expr": "sum by (datname) (pg_stat_database_numbackends{cluster=~\"$cluster\", datname=~\"$database\"})",
667
+ "legendFormat": "",
668
+ "instant": true,
669
+ "range": false,
670
+ "format": "table"
671
+ },
672
+ {
673
+ "refId": "C",
674
+ "datasource": {
675
+ "type": "prometheus",
676
+ "uid": "prometheus"
677
+ },
678
+ "expr": "sum by (datname) (rate(pg_stat_database_xact_commit{cluster=~\"$cluster\", datname=~\"$database\"}[$__range]))",
679
+ "legendFormat": "",
680
+ "instant": true,
681
+ "range": false,
682
+ "format": "table"
683
+ },
684
+ {
685
+ "refId": "D",
686
+ "datasource": {
687
+ "type": "prometheus",
688
+ "uid": "prometheus"
689
+ },
690
+ "expr": "sum by (datname) (rate(pg_stat_database_xact_rollback{cluster=~\"$cluster\", datname=~\"$database\"}[$__range]))",
691
+ "legendFormat": "",
692
+ "instant": true,
693
+ "range": false,
694
+ "format": "table"
695
+ },
696
+ {
697
+ "refId": "E",
698
+ "datasource": {
699
+ "type": "prometheus",
700
+ "uid": "prometheus"
701
+ },
702
+ "expr": "sum by (datname) (increase(pg_stat_database_temp_bytes{cluster=~\"$cluster\", datname=~\"$database\"}[$__range]))",
703
+ "legendFormat": "",
704
+ "instant": true,
705
+ "range": false,
706
+ "format": "table"
707
+ }
708
+ ],
709
+ "transformations": [
710
+ {
711
+ "id": "merge",
712
+ "options": {}
713
+ },
714
+ {
715
+ "id": "organize",
716
+ "options": {
717
+ "excludeByName": {
718
+ "Time": true
719
+ },
720
+ "renameByName": {
721
+ "datname": "Database",
722
+ "Value #A": "Size",
723
+ "Value #B": "Connections",
724
+ "Value #C": "Commits/s",
725
+ "Value #D": "Rollbacks/s",
726
+ "Value #E": "Temp written"
727
+ }
728
+ }
729
+ }
730
+ ],
731
+ "fieldConfig": {
732
+ "defaults": {
733
+ "thresholds": {
734
+ "mode": "absolute",
735
+ "steps": [
736
+ {
737
+ "color": "green",
738
+ "value": null
739
+ }
740
+ ]
741
+ },
742
+ "custom": {
743
+ "align": "auto",
744
+ "filterable": true
745
+ }
746
+ },
747
+ "overrides": [
748
+ {
749
+ "matcher": {
750
+ "id": "byName",
751
+ "options": "Size"
752
+ },
753
+ "properties": [
754
+ {
755
+ "id": "unit",
756
+ "value": "bytes"
757
+ }
758
+ ]
759
+ },
760
+ {
761
+ "matcher": {
762
+ "id": "byName",
763
+ "options": "Commits/s"
764
+ },
765
+ "properties": [
766
+ {
767
+ "id": "unit",
768
+ "value": "ops"
769
+ }
770
+ ]
771
+ },
772
+ {
773
+ "matcher": {
774
+ "id": "byName",
775
+ "options": "Rollbacks/s"
776
+ },
777
+ "properties": [
778
+ {
779
+ "id": "unit",
780
+ "value": "ops"
781
+ }
782
+ ]
783
+ },
784
+ {
785
+ "matcher": {
786
+ "id": "byName",
787
+ "options": "Temp written"
788
+ },
789
+ "properties": [
790
+ {
791
+ "id": "unit",
792
+ "value": "bytes"
793
+ }
794
+ ]
795
+ }
796
+ ]
797
+ },
798
+ "options": {
799
+ "showHeader": true,
800
+ "cellHeight": "sm",
801
+ "sortBy": [
802
+ {
803
+ "displayName": "Size",
804
+ "desc": true
805
+ }
806
+ ]
807
+ }
808
+ },
809
+ {
810
+ "type": "timeseries",
811
+ "title": "Connections by database",
812
+ "id": 13,
813
+ "description": "",
814
+ "gridPos": {
815
+ "x": 0,
816
+ "y": 16,
817
+ "w": 12,
818
+ "h": 8
819
+ },
820
+ "datasource": {
821
+ "type": "prometheus",
822
+ "uid": "prometheus"
823
+ },
824
+ "targets": [
825
+ {
826
+ "refId": "A",
827
+ "datasource": {
828
+ "type": "prometheus",
829
+ "uid": "prometheus"
830
+ },
831
+ "expr": "sum by (datname) (pg_stat_database_numbackends{cluster=~\"$cluster\", datname=~\"$database\"})",
832
+ "legendFormat": "{{datname}}"
833
+ }
834
+ ],
835
+ "fieldConfig": {
836
+ "defaults": {
837
+ "unit": "short",
838
+ "custom": {
839
+ "fillOpacity": 30,
840
+ "lineWidth": 1,
841
+ "drawStyle": "line",
842
+ "showPoints": "never",
843
+ "spanNulls": true,
844
+ "stacking": {
845
+ "mode": "normal"
846
+ },
847
+ "thresholdsStyle": {
848
+ "mode": "off"
849
+ }
850
+ },
851
+ "thresholds": {
852
+ "mode": "absolute",
853
+ "steps": [
854
+ {
855
+ "color": "green",
856
+ "value": null
857
+ }
858
+ ]
859
+ }
860
+ },
861
+ "overrides": []
862
+ },
863
+ "options": {
864
+ "legend": {
865
+ "displayMode": "table",
866
+ "placement": "right",
867
+ "calcs": [
868
+ "mean",
869
+ "max",
870
+ "lastNotNull"
871
+ ]
872
+ },
873
+ "tooltip": {
874
+ "mode": "multi",
875
+ "sort": "desc"
876
+ }
877
+ }
878
+ },
879
+ {
880
+ "type": "timeseries",
881
+ "title": "Transactions / s by database",
882
+ "id": 14,
883
+ "description": "",
884
+ "gridPos": {
885
+ "x": 12,
886
+ "y": 16,
887
+ "w": 12,
888
+ "h": 8
889
+ },
890
+ "datasource": {
891
+ "type": "prometheus",
892
+ "uid": "prometheus"
893
+ },
894
+ "targets": [
895
+ {
896
+ "refId": "A",
897
+ "datasource": {
898
+ "type": "prometheus",
899
+ "uid": "prometheus"
900
+ },
901
+ "expr": "sum by (datname) (rate(pg_stat_database_xact_commit{cluster=~\"$cluster\", datname=~\"$database\"}[$__rate_interval]))",
902
+ "legendFormat": "{{datname}}"
903
+ }
904
+ ],
905
+ "fieldConfig": {
906
+ "defaults": {
907
+ "unit": "ops",
908
+ "custom": {
909
+ "fillOpacity": 10,
910
+ "lineWidth": 1,
911
+ "drawStyle": "line",
912
+ "showPoints": "never",
913
+ "spanNulls": true,
914
+ "stacking": {
915
+ "mode": "none"
916
+ },
917
+ "thresholdsStyle": {
918
+ "mode": "off"
919
+ }
920
+ },
921
+ "thresholds": {
922
+ "mode": "absolute",
923
+ "steps": [
924
+ {
925
+ "color": "green",
926
+ "value": null
927
+ }
928
+ ]
929
+ }
930
+ },
931
+ "overrides": []
932
+ },
933
+ "options": {
934
+ "legend": {
935
+ "displayMode": "table",
936
+ "placement": "right",
937
+ "calcs": [
938
+ "mean",
939
+ "max",
940
+ "lastNotNull"
941
+ ]
942
+ },
943
+ "tooltip": {
944
+ "mode": "multi",
945
+ "sort": "desc"
946
+ }
947
+ }
948
+ },
949
+ {
950
+ "type": "timeseries",
951
+ "title": "Rows fetched / inserted / updated / deleted",
952
+ "id": 15,
953
+ "description": "",
954
+ "gridPos": {
955
+ "x": 0,
956
+ "y": 24,
957
+ "w": 12,
958
+ "h": 8
959
+ },
960
+ "datasource": {
961
+ "type": "prometheus",
962
+ "uid": "prometheus"
963
+ },
964
+ "targets": [
965
+ {
966
+ "refId": "A",
967
+ "datasource": {
968
+ "type": "prometheus",
969
+ "uid": "prometheus"
970
+ },
971
+ "expr": "sum(rate(pg_stat_database_tup_fetched{cluster=~\"$cluster\", datname=~\"$database\"}[$__rate_interval]))",
972
+ "legendFormat": "fetched"
973
+ },
974
+ {
975
+ "refId": "B",
976
+ "datasource": {
977
+ "type": "prometheus",
978
+ "uid": "prometheus"
979
+ },
980
+ "expr": "sum(rate(pg_stat_database_tup_inserted{cluster=~\"$cluster\", datname=~\"$database\"}[$__rate_interval]))",
981
+ "legendFormat": "inserted"
982
+ },
983
+ {
984
+ "refId": "C",
985
+ "datasource": {
986
+ "type": "prometheus",
987
+ "uid": "prometheus"
988
+ },
989
+ "expr": "sum(rate(pg_stat_database_tup_updated{cluster=~\"$cluster\", datname=~\"$database\"}[$__rate_interval]))",
990
+ "legendFormat": "updated"
991
+ },
992
+ {
993
+ "refId": "D",
994
+ "datasource": {
995
+ "type": "prometheus",
996
+ "uid": "prometheus"
997
+ },
998
+ "expr": "sum(rate(pg_stat_database_tup_deleted{cluster=~\"$cluster\", datname=~\"$database\"}[$__rate_interval]))",
999
+ "legendFormat": "deleted"
1000
+ }
1001
+ ],
1002
+ "fieldConfig": {
1003
+ "defaults": {
1004
+ "unit": "rows/s",
1005
+ "custom": {
1006
+ "fillOpacity": 10,
1007
+ "lineWidth": 1,
1008
+ "drawStyle": "line",
1009
+ "showPoints": "never",
1010
+ "spanNulls": true,
1011
+ "stacking": {
1012
+ "mode": "none"
1013
+ },
1014
+ "thresholdsStyle": {
1015
+ "mode": "off"
1016
+ }
1017
+ },
1018
+ "thresholds": {
1019
+ "mode": "absolute",
1020
+ "steps": [
1021
+ {
1022
+ "color": "green",
1023
+ "value": null
1024
+ }
1025
+ ]
1026
+ }
1027
+ },
1028
+ "overrides": []
1029
+ },
1030
+ "options": {
1031
+ "legend": {
1032
+ "displayMode": "list",
1033
+ "placement": "bottom",
1034
+ "calcs": []
1035
+ },
1036
+ "tooltip": {
1037
+ "mode": "multi",
1038
+ "sort": "desc"
1039
+ }
1040
+ }
1041
+ },
1042
+ {
1043
+ "type": "timeseries",
1044
+ "title": "Database size",
1045
+ "id": 16,
1046
+ "description": "",
1047
+ "gridPos": {
1048
+ "x": 12,
1049
+ "y": 24,
1050
+ "w": 12,
1051
+ "h": 8
1052
+ },
1053
+ "datasource": {
1054
+ "type": "prometheus",
1055
+ "uid": "prometheus"
1056
+ },
1057
+ "targets": [
1058
+ {
1059
+ "refId": "A",
1060
+ "datasource": {
1061
+ "type": "prometheus",
1062
+ "uid": "prometheus"
1063
+ },
1064
+ "expr": "sum by (datname) (pg_database_size_bytes{cluster=~\"$cluster\", datname=~\"$database\"})",
1065
+ "legendFormat": "{{datname}}"
1066
+ }
1067
+ ],
1068
+ "fieldConfig": {
1069
+ "defaults": {
1070
+ "unit": "bytes",
1071
+ "custom": {
1072
+ "fillOpacity": 10,
1073
+ "lineWidth": 1,
1074
+ "drawStyle": "line",
1075
+ "showPoints": "never",
1076
+ "spanNulls": true,
1077
+ "stacking": {
1078
+ "mode": "none"
1079
+ },
1080
+ "thresholdsStyle": {
1081
+ "mode": "off"
1082
+ }
1083
+ },
1084
+ "thresholds": {
1085
+ "mode": "absolute",
1086
+ "steps": [
1087
+ {
1088
+ "color": "green",
1089
+ "value": null
1090
+ }
1091
+ ]
1092
+ }
1093
+ },
1094
+ "overrides": []
1095
+ },
1096
+ "options": {
1097
+ "legend": {
1098
+ "displayMode": "table",
1099
+ "placement": "right",
1100
+ "calcs": [
1101
+ "mean",
1102
+ "max",
1103
+ "lastNotNull"
1104
+ ]
1105
+ },
1106
+ "tooltip": {
1107
+ "mode": "multi",
1108
+ "sort": "desc"
1109
+ }
1110
+ }
1111
+ },
1112
+ {
1113
+ "type": "row",
1114
+ "title": "Sessions and locks",
1115
+ "id": 17,
1116
+ "collapsed": false,
1117
+ "gridPos": {
1118
+ "x": 0,
1119
+ "y": 32,
1120
+ "w": 24,
1121
+ "h": 1
1122
+ },
1123
+ "panels": []
1124
+ },
1125
+ {
1126
+ "type": "timeseries",
1127
+ "title": "Sessions by state",
1128
+ "id": 18,
1129
+ "description": "'idle in transaction' that stays high means clients open transactions and forget to commit.",
1130
+ "gridPos": {
1131
+ "x": 0,
1132
+ "y": 33,
1133
+ "w": 12,
1134
+ "h": 8
1135
+ },
1136
+ "datasource": {
1137
+ "type": "prometheus",
1138
+ "uid": "prometheus"
1139
+ },
1140
+ "targets": [
1141
+ {
1142
+ "refId": "A",
1143
+ "datasource": {
1144
+ "type": "prometheus",
1145
+ "uid": "prometheus"
1146
+ },
1147
+ "expr": "sum by (state) (pg_stat_activity_count{cluster=~\"$cluster\", datname=~\"$database\"})",
1148
+ "legendFormat": "{{state}}"
1149
+ }
1150
+ ],
1151
+ "fieldConfig": {
1152
+ "defaults": {
1153
+ "unit": "short",
1154
+ "custom": {
1155
+ "fillOpacity": 30,
1156
+ "lineWidth": 1,
1157
+ "drawStyle": "line",
1158
+ "showPoints": "never",
1159
+ "spanNulls": true,
1160
+ "stacking": {
1161
+ "mode": "normal"
1162
+ },
1163
+ "thresholdsStyle": {
1164
+ "mode": "off"
1165
+ }
1166
+ },
1167
+ "thresholds": {
1168
+ "mode": "absolute",
1169
+ "steps": [
1170
+ {
1171
+ "color": "green",
1172
+ "value": null
1173
+ }
1174
+ ]
1175
+ }
1176
+ },
1177
+ "overrides": []
1178
+ },
1179
+ "options": {
1180
+ "legend": {
1181
+ "displayMode": "list",
1182
+ "placement": "bottom",
1183
+ "calcs": []
1184
+ },
1185
+ "tooltip": {
1186
+ "mode": "multi",
1187
+ "sort": "desc"
1188
+ }
1189
+ }
1190
+ },
1191
+ {
1192
+ "type": "timeseries",
1193
+ "title": "Locks by mode",
1194
+ "id": 19,
1195
+ "description": "",
1196
+ "gridPos": {
1197
+ "x": 12,
1198
+ "y": 33,
1199
+ "w": 12,
1200
+ "h": 8
1201
+ },
1202
+ "datasource": {
1203
+ "type": "prometheus",
1204
+ "uid": "prometheus"
1205
+ },
1206
+ "targets": [
1207
+ {
1208
+ "refId": "A",
1209
+ "datasource": {
1210
+ "type": "prometheus",
1211
+ "uid": "prometheus"
1212
+ },
1213
+ "expr": "sum by (mode) (pg_locks_count{cluster=~\"$cluster\", datname=~\"$database\"})",
1214
+ "legendFormat": "{{mode}}"
1215
+ }
1216
+ ],
1217
+ "fieldConfig": {
1218
+ "defaults": {
1219
+ "unit": "short",
1220
+ "custom": {
1221
+ "fillOpacity": 30,
1222
+ "lineWidth": 1,
1223
+ "drawStyle": "line",
1224
+ "showPoints": "never",
1225
+ "spanNulls": true,
1226
+ "stacking": {
1227
+ "mode": "normal"
1228
+ },
1229
+ "thresholdsStyle": {
1230
+ "mode": "off"
1231
+ }
1232
+ },
1233
+ "thresholds": {
1234
+ "mode": "absolute",
1235
+ "steps": [
1236
+ {
1237
+ "color": "green",
1238
+ "value": null
1239
+ }
1240
+ ]
1241
+ }
1242
+ },
1243
+ "overrides": []
1244
+ },
1245
+ "options": {
1246
+ "legend": {
1247
+ "displayMode": "list",
1248
+ "placement": "bottom",
1249
+ "calcs": []
1250
+ },
1251
+ "tooltip": {
1252
+ "mode": "multi",
1253
+ "sort": "desc"
1254
+ }
1255
+ }
1256
+ },
1257
+ {
1258
+ "type": "row",
1259
+ "title": "Connection pooler (pgbouncer)",
1260
+ "id": 20,
1261
+ "collapsed": false,
1262
+ "gridPos": {
1263
+ "x": 0,
1264
+ "y": 41,
1265
+ "w": 24,
1266
+ "h": 1
1267
+ },
1268
+ "panels": []
1269
+ },
1270
+ {
1271
+ "type": "timeseries",
1272
+ "title": "Clients waiting for a server connection",
1273
+ "id": 21,
1274
+ "description": "Above zero for long means the pool is too small for the load.",
1275
+ "gridPos": {
1276
+ "x": 0,
1277
+ "y": 42,
1278
+ "w": 12,
1279
+ "h": 8
1280
+ },
1281
+ "datasource": {
1282
+ "type": "prometheus",
1283
+ "uid": "prometheus"
1284
+ },
1285
+ "targets": [
1286
+ {
1287
+ "refId": "A",
1288
+ "datasource": {
1289
+ "type": "prometheus",
1290
+ "uid": "prometheus"
1291
+ },
1292
+ "expr": "sum by (database) (pgbouncer_show_pools_cl_waiting{cluster=~\"$cluster\"})",
1293
+ "legendFormat": "{{database}}"
1294
+ }
1295
+ ],
1296
+ "fieldConfig": {
1297
+ "defaults": {
1298
+ "unit": "short",
1299
+ "custom": {
1300
+ "fillOpacity": 10,
1301
+ "lineWidth": 1,
1302
+ "drawStyle": "line",
1303
+ "showPoints": "never",
1304
+ "spanNulls": true,
1305
+ "stacking": {
1306
+ "mode": "none"
1307
+ },
1308
+ "thresholdsStyle": {
1309
+ "mode": "off"
1310
+ }
1311
+ },
1312
+ "thresholds": {
1313
+ "mode": "absolute",
1314
+ "steps": [
1315
+ {
1316
+ "color": "green",
1317
+ "value": null
1318
+ }
1319
+ ]
1320
+ }
1321
+ },
1322
+ "overrides": []
1323
+ },
1324
+ "options": {
1325
+ "legend": {
1326
+ "displayMode": "list",
1327
+ "placement": "bottom",
1328
+ "calcs": []
1329
+ },
1330
+ "tooltip": {
1331
+ "mode": "multi",
1332
+ "sort": "desc"
1333
+ }
1334
+ }
1335
+ },
1336
+ {
1337
+ "type": "timeseries",
1338
+ "title": "Pool wait time",
1339
+ "id": 22,
1340
+ "description": "",
1341
+ "gridPos": {
1342
+ "x": 12,
1343
+ "y": 42,
1344
+ "w": 12,
1345
+ "h": 8
1346
+ },
1347
+ "datasource": {
1348
+ "type": "prometheus",
1349
+ "uid": "prometheus"
1350
+ },
1351
+ "targets": [
1352
+ {
1353
+ "refId": "A",
1354
+ "datasource": {
1355
+ "type": "prometheus",
1356
+ "uid": "prometheus"
1357
+ },
1358
+ "expr": "max by (database) (pgbouncer_show_pools_maxwait_us{cluster=~\"$cluster\"}) / 1e6",
1359
+ "legendFormat": "{{database}}"
1360
+ }
1361
+ ],
1362
+ "fieldConfig": {
1363
+ "defaults": {
1364
+ "unit": "s",
1365
+ "custom": {
1366
+ "fillOpacity": 10,
1367
+ "lineWidth": 1,
1368
+ "drawStyle": "line",
1369
+ "showPoints": "never",
1370
+ "spanNulls": true,
1371
+ "stacking": {
1372
+ "mode": "none"
1373
+ },
1374
+ "thresholdsStyle": {
1375
+ "mode": "off"
1376
+ }
1377
+ },
1378
+ "thresholds": {
1379
+ "mode": "absolute",
1380
+ "steps": [
1381
+ {
1382
+ "color": "green",
1383
+ "value": null
1384
+ }
1385
+ ]
1386
+ }
1387
+ },
1388
+ "overrides": []
1389
+ },
1390
+ "options": {
1391
+ "legend": {
1392
+ "displayMode": "list",
1393
+ "placement": "bottom",
1394
+ "calcs": []
1395
+ },
1396
+ "tooltip": {
1397
+ "mode": "multi",
1398
+ "sort": "desc"
1399
+ }
1400
+ }
1401
+ },
1402
+ {
1403
+ "type": "row",
1404
+ "title": "Writes and checkpoints",
1405
+ "id": 23,
1406
+ "collapsed": false,
1407
+ "gridPos": {
1408
+ "x": 0,
1409
+ "y": 50,
1410
+ "w": 24,
1411
+ "h": 1
1412
+ },
1413
+ "panels": []
1414
+ },
1415
+ {
1416
+ "type": "timeseries",
1417
+ "title": "Checkpoints",
1418
+ "id": 24,
1419
+ "description": "Many requested checkpoints mean max_wal_size is too small for the write load.",
1420
+ "gridPos": {
1421
+ "x": 0,
1422
+ "y": 51,
1423
+ "w": 12,
1424
+ "h": 8
1425
+ },
1426
+ "datasource": {
1427
+ "type": "prometheus",
1428
+ "uid": "prometheus"
1429
+ },
1430
+ "targets": [
1431
+ {
1432
+ "refId": "A",
1433
+ "datasource": {
1434
+ "type": "prometheus",
1435
+ "uid": "prometheus"
1436
+ },
1437
+ "expr": "sum(rate(pg_stat_bgwriter_checkpoints_timed_total{cluster=~\"$cluster\"}[$__rate_interval]))",
1438
+ "legendFormat": "timed"
1439
+ },
1440
+ {
1441
+ "refId": "B",
1442
+ "datasource": {
1443
+ "type": "prometheus",
1444
+ "uid": "prometheus"
1445
+ },
1446
+ "expr": "sum(rate(pg_stat_bgwriter_checkpoints_req_total{cluster=~\"$cluster\"}[$__rate_interval]))",
1447
+ "legendFormat": "requested"
1448
+ }
1449
+ ],
1450
+ "fieldConfig": {
1451
+ "defaults": {
1452
+ "unit": "ops",
1453
+ "custom": {
1454
+ "fillOpacity": 10,
1455
+ "lineWidth": 1,
1456
+ "drawStyle": "line",
1457
+ "showPoints": "never",
1458
+ "spanNulls": true,
1459
+ "stacking": {
1460
+ "mode": "none"
1461
+ },
1462
+ "thresholdsStyle": {
1463
+ "mode": "off"
1464
+ }
1465
+ },
1466
+ "thresholds": {
1467
+ "mode": "absolute",
1468
+ "steps": [
1469
+ {
1470
+ "color": "green",
1471
+ "value": null
1472
+ }
1473
+ ]
1474
+ }
1475
+ },
1476
+ "overrides": []
1477
+ },
1478
+ "options": {
1479
+ "legend": {
1480
+ "displayMode": "list",
1481
+ "placement": "bottom",
1482
+ "calcs": []
1483
+ },
1484
+ "tooltip": {
1485
+ "mode": "multi",
1486
+ "sort": "desc"
1487
+ }
1488
+ }
1489
+ },
1490
+ {
1491
+ "type": "timeseries",
1492
+ "title": "Buffers written",
1493
+ "id": 25,
1494
+ "description": "Backends writing their own buffers is a sign shared_buffers or bgwriter settings are too low.",
1495
+ "gridPos": {
1496
+ "x": 12,
1497
+ "y": 51,
1498
+ "w": 12,
1499
+ "h": 8
1500
+ },
1501
+ "datasource": {
1502
+ "type": "prometheus",
1503
+ "uid": "prometheus"
1504
+ },
1505
+ "targets": [
1506
+ {
1507
+ "refId": "A",
1508
+ "datasource": {
1509
+ "type": "prometheus",
1510
+ "uid": "prometheus"
1511
+ },
1512
+ "expr": "sum(rate(pg_stat_bgwriter_buffers_checkpoint{cluster=~\"$cluster\"}[$__rate_interval]))",
1513
+ "legendFormat": "checkpoint"
1514
+ },
1515
+ {
1516
+ "refId": "B",
1517
+ "datasource": {
1518
+ "type": "prometheus",
1519
+ "uid": "prometheus"
1520
+ },
1521
+ "expr": "sum(rate(pg_stat_bgwriter_buffers_clean{cluster=~\"$cluster\"}[$__rate_interval]))",
1522
+ "legendFormat": "clean"
1523
+ },
1524
+ {
1525
+ "refId": "C",
1526
+ "datasource": {
1527
+ "type": "prometheus",
1528
+ "uid": "prometheus"
1529
+ },
1530
+ "expr": "sum(rate(pg_stat_bgwriter_buffers_backend{cluster=~\"$cluster\"}[$__rate_interval]))",
1531
+ "legendFormat": "backend"
1532
+ }
1533
+ ],
1534
+ "fieldConfig": {
1535
+ "defaults": {
1536
+ "unit": "ops",
1537
+ "custom": {
1538
+ "fillOpacity": 10,
1539
+ "lineWidth": 1,
1540
+ "drawStyle": "line",
1541
+ "showPoints": "never",
1542
+ "spanNulls": true,
1543
+ "stacking": {
1544
+ "mode": "none"
1545
+ },
1546
+ "thresholdsStyle": {
1547
+ "mode": "off"
1548
+ }
1549
+ },
1550
+ "thresholds": {
1551
+ "mode": "absolute",
1552
+ "steps": [
1553
+ {
1554
+ "color": "green",
1555
+ "value": null
1556
+ }
1557
+ ]
1558
+ }
1559
+ },
1560
+ "overrides": []
1561
+ },
1562
+ "options": {
1563
+ "legend": {
1564
+ "displayMode": "list",
1565
+ "placement": "bottom",
1566
+ "calcs": []
1567
+ },
1568
+ "tooltip": {
1569
+ "mode": "multi",
1570
+ "sort": "desc"
1571
+ }
1572
+ }
1573
+ }
1574
+ ],
1575
+ "links": [
1576
+ {
1577
+ "title": "Infrastructure",
1578
+ "type": "dashboards",
1579
+ "tags": [
1580
+ "infrastructure"
1581
+ ],
1582
+ "asDropdown": true,
1583
+ "includeVars": false,
1584
+ "keepTime": true
1585
+ }
1586
+ ],
1587
+ "annotations": {
1588
+ "list": []
1589
+ }
1590
+ }