{"id":20319536,"url":"https://github.com/davemurphysf/new-relic-lab","last_synced_at":"2026-03-19T15:15:12.959Z","repository":{"id":42106953,"uuid":"151013940","full_name":"davemurphysf/new-relic-lab","owner":"davemurphysf","description":"Setup files and instructions to test New Relic on GKE","archived":false,"fork":false,"pushed_at":"2022-12-08T22:42:17.000Z","size":1457,"stargazers_count":0,"open_issues_count":17,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-20T22:50:49.998Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davemurphysf.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-30T22:51:42.000Z","updated_at":"2020-01-15T18:05:33.000Z","dependencies_parsed_at":"2023-01-25T15:15:31.969Z","dependency_job_id":null,"html_url":"https://github.com/davemurphysf/new-relic-lab","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/davemurphysf/new-relic-lab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2Fnew-relic-lab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2Fnew-relic-lab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2Fnew-relic-lab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2Fnew-relic-lab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davemurphysf","download_url":"https://codeload.github.com/davemurphysf/new-relic-lab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davemurphysf%2Fnew-relic-lab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29260657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-09T04:11:57.159Z","status":"ssl_error","status_checked_at":"2026-02-09T04:11:56.117Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T18:47:18.316Z","updated_at":"2026-02-09T09:31:59.903Z","avatar_url":"https://github.com/davemurphysf.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# New Relic Demo Setup\n\n## Architecture\n(coming soon)\n\n## Description\nThis demo consists of a small Kubernetes cluster ([GKE](https://cloud.google.com/kubernetes-engine/)) running a Nginx server to serve static content and a basic Node.js API application with CRUD functionality on three backends:\n* A [Redis](https://redis.io) cache, located within the Kubernetes cluster\n* A fully-managed Postgres SQL Database ([Cloud SQL](https://cloud.google.com/sql/))\n* Text files within a [Google Cloud Storage](https://cloud.google.com/storage/) bucket\n\nNew Relic is configured to monitor at both the infrastructure level and the application level.  For the infrastructure, the [Kubernetes cluster](https://docs.newrelic.com/docs/integrations/host-integrations/host-integrations-list/kubernetes-monitoring-integration#install) as well as the entire [Google Cloud Platform](https://docs.newrelic.com/docs/integrations/google-cloud-platform-integrations/getting-started/connect-google-cloud-platform-services-infrastructure) is instrumented and monitored.\n\nOnce the cluster is setup and running, load is put on the system via a [wrk](https://github.com/wg/wrk) script that will generate the appropriate CRUD requests.\n\nNOTE: There is no authorization/authentication at all in this setup; it is purely for demonstration purposes.\n\n## Notes\n\nIn order for the managed database to be reachable from GKE, you need to do two things (in order):\n1. [Follow the directions here](https://cloud.google.com/sql/docs/postgres/connect-kubernetes-engine) to create a sidecar proxy connection\n2. Ensure that the GKE cluster itself has the appropriate service access permissions to access Cloud SQL.\n\n\n   If you forget to do this when you create the cluster, you will need to create a new node pool with the correct permissions and then move the pods over from the original node pool.  Here is an example command to create a new node pool with the correct SQL permissions\n   ```\n   gcloud container node-pools create cluser-a \\\n   --cluster new-relic-k8s --zone us-central1 \\\n   --num-nodes 2 \\\n   --scopes https://www.googleapis.com/auth/devstorage.read_write,https://www.googleapis.com/auth/logging.write,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/servicecontrol,https://www.googleapis.com/auth/service.management.readonly,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/sqlservice.admin,https://www.googleapis.com/auth/cloud-platform \n   ```\n\nThe database was setup with exactly two columns:\n   * ```key VARCHAR(32) UNIQUE NOT NULL```\n   * ```value VARCHAR(64) NOT NULL```\n   * ```PRIMARY KEY(key)```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemurphysf%2Fnew-relic-lab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavemurphysf%2Fnew-relic-lab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavemurphysf%2Fnew-relic-lab/lists"}