Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Prometheus and Grafana monitoring #84

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Draft

Conversation

davidbyoung
Copy link
Collaborator

@davidbyoung davidbyoung commented Jan 28, 2025

  • Get metrics working for the database, website, and API
  • Simulate a pod crash and ensure alerts are triggered
  • Get labels to populate on alert summaries
  • Configure Grafana dashboards
  • Determine how to send alerts (eg email?)
  • Configure sending of alerts
  • Secure Grafana password

Copy link

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.data.kubernetes_service.load_balancer: Read complete after 0s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.data.kubernetes_service.load_balancer: Read complete after 1s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

…rts, still have checked in a container command that will keep the API deployment from succeeding
Copy link

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.data.kubernetes_service.load_balancer: Read complete after 0s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

github-actions bot commented Feb 1, 2025

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.data.kubernetes_service.load_balancer: Read complete after 1s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

github-actions bot commented Feb 1, 2025

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.data.kubernetes_service.load_balancer: Read complete after 0s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

github-actions bot commented Feb 1, 2025

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.data.kubernetes_service.load_balancer: Read complete after 1s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

github-actions bot commented Feb 1, 2025

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.data.kubernetes_service.load_balancer: Read complete after 0s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Copy link

github-actions bot commented Feb 1, 2025

Terraform Plan Output

digitalocean_spaces_bucket.aphiria_com_infrastructure: Refreshing state... [id=aphiria-com-infrastructure]
module.kubernetes.digitalocean_kubernetes_cluster.aphiria_com_cluster: Refreshing state... [id=c0bc903e-71c8-421d-8bce-0a2092731e0f]
module.monitoring.digitalocean_uptime_check.web: Refreshing state... [id=f14cf1b0-0af3-445e-95e5-048571bcd563]
module.networking.digitalocean_domain.default: Refreshing state... [id=aphiria.com]
module.monitoring.digitalocean_uptime_check.api: Refreshing state... [id=d4daa623-1532-4113-b1ef-0cf9ab308a79]
module.networking.data.kubernetes_service.load_balancer: Reading...
module.networking.data.kubernetes_service.load_balancer: Read complete after 0s [id=nginx-gateway/nginx-gateway-nginx-gateway-fabric]
module.networking.digitalocean_record.www_cname: Refreshing state... [id=1744933304]
module.networking.digitalocean_record.mx_3: Refreshing state... [id=1744933309]
module.networking.digitalocean_record.a: Refreshing state... [id=1744933307]
module.networking.digitalocean_record.api_a: Refreshing state... [id=1744933306]
module.networking.digitalocean_record.mx_1: Refreshing state... [id=1744933310]
module.networking.digitalocean_record.ns_3: Refreshing state... [id=1744933312]
module.networking.digitalocean_record.mx_default: Refreshing state... [id=1744933308]
module.networking.digitalocean_record.mx_2: Refreshing state... [id=1744933305]
module.networking.digitalocean_record.ns_1: Refreshing state... [id=1744933303]
module.networking.digitalocean_record.ns_2: Refreshing state... [id=1744933311]
module.networking.digitalocean_record.mx_4: Refreshing state... [id=1744933302]

No changes. Your infrastructure matches the configuration.

Terraform has compared your real infrastructure against your configuration
and found no differences, so no changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant