Skip to content

Conversation

maru-ava
Copy link
Contributor

@maru-ava maru-ava commented Aug 1, 2025

Why this should be merged

Our current monitoring stack was only ever intended to be a stop-gap until a managed alternative became available. Grafana Cloud is that alternative. This PR cleans up the configuration of monitoring (endpoints and urls) to simplify the pending migration.

How this was tested

CI

Need to be documented in RELEASES.md?

N/A

@maru-ava maru-ava self-assigned this Aug 1, 2025
@maru-ava maru-ava added ci This focuses on changes to the CI process tooling Build, test and development tooling labels Aug 1, 2025
@maru-ava maru-ava force-pushed the ci-grafana-cloud branch 3 times, most recently from fbaf095 to 0ef4d40 Compare August 1, 2025 05:54
@maru-ava maru-ava moved this to In Progress 🏗️ in avalanchego Aug 1, 2025
@maru-ava maru-ava force-pushed the ci-grafana-cloud branch 9 times, most recently from 4fe235f to 74e3cfe Compare August 4, 2025 18:09
@maru-ava maru-ava moved this from In Progress 🏗️ to Ready 🚦 in avalanchego Aug 5, 2025
@maru-ava maru-ava marked this pull request as ready for review August 5, 2025 03:09
@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 03:09
@maru-ava maru-ava requested a review from aaronbuchwald as a code owner August 5, 2025 03:09
@maru-ava maru-ava marked this pull request as draft August 5, 2025 03:10
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the monitoring infrastructure from a self-hosted solution to Grafana Cloud, replacing the previous "poc" endpoints with Grafana Cloud's managed services.

  • Updates all hardcoded URLs from self-hosted monitoring instances to Grafana Cloud endpoints
  • Adds URL configuration support for both Prometheus and Loki collectors
  • Updates secret management to include URLs alongside credentials

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/reexecute/c/README.md Updates Grafana URLs and dashboard IDs in documentation
tests/fixture/tmpnet/yaml/promtail-daemonset.yaml Adds Loki URL configuration and updates secret name
tests/fixture/tmpnet/yaml/prometheus-agent.yaml Adds Prometheus URL configuration and updates secret name
tests/fixture/tmpnet/network.go Updates Grafana URI and dashboard ID constants
tests/fixture/tmpnet/monitor_processes.go Refactors collector configuration to include URLs and removes hardcoded endpoints
tests/fixture/tmpnet/monitor_kube.go Updates Kubernetes secret creation to include URL configuration
tests/fixture/tmpnet/check_monitoring.go Removes URL validation and adds Prometheus path suffix for Grafana Cloud
tests/fixture/tmpnet/README.md Updates documentation with new URL requirements and endpoints
tests/e2e/README.md Updates documentation with new configuration requirements
scripts/configure-local-metrics-collection.sh Updates Grafana link generation
.github/workflows/*.yml Updates all workflow files to use new URL-based configuration
.github/actions/run-monitored-tmpnet-cmd/action.yml Adds URL inputs and updates default dashboard ID
Comments suppressed due to low confidence (1)

tests/fixture/tmpnet/monitor_processes.go:464

  • Error message is missing 'env' prefix for consistency with other error messages in the same function. Should be 'env var not set' to match the pattern used for other environment variables.
		return "", "", "", fmt.Errorf("%s env var not set", passwordEnvVar)

@maru-ava maru-ava force-pushed the ci-grafana-cloud branch 5 times, most recently from 8d9afbc to d8ffaf6 Compare August 7, 2025 04:58
@maru-ava maru-ava marked this pull request as ready for review August 7, 2025 04:58
@maru-ava maru-ava requested a review from joshua-kim as a code owner August 7, 2025 04:58
@maru-ava maru-ava force-pushed the ci-grafana-cloud branch 2 times, most recently from cd25944 to fd4fc62 Compare September 17, 2025 16:18
@maru-ava
Copy link
Contributor Author

CI is passing. Need to add the open source dashboards back to grafana and update the metrics link to the main dashboard.

@maru-ava maru-ava marked this pull request as draft September 18, 2025 16:19
@maru-ava maru-ava changed the title [monitoring] Switch to grafana cloud for monitoring [monitoring] Clean up monitoring configuration in preparation for grafana cloud migration Sep 18, 2025
@maru-ava maru-ava marked this pull request as ready for review September 18, 2025 20:27
@maru-ava maru-ava added this pull request to the merge queue Sep 19, 2025
Merged via the queue into master with commit a826eef Sep 19, 2025
59 of 60 checks passed
@maru-ava maru-ava deleted the ci-grafana-cloud branch September 19, 2025 15:21
@github-project-automation github-project-automation bot moved this from In Review 🔎 to Done 🎉 in avalanchego Sep 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci This focuses on changes to the CI process tooling Build, test and development tooling
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants