This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "html/template" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| scrape_configs: | |
| - job_name: "prometheus" | |
| scrape_interval: 15s | |
| static_configs: | |
| - targets: [ | |
| "localhost:9090" | |
| ] | |
| - job_name: "opencensus" | |
| scrape_interval: 15s | |
| static_configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "time" | |
| "go.opencensus.io/exporter/stats/stackdriver" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| steps: | |
| - name: "gcr.io/cloud-builders/go" | |
| args: ["build", "-tags","node","main.go"] | |
| env: [ | |
| "GOARCH=amd64", | |
| "GOOS=linux", | |
| "CGO_ENABLED=0", | |
| "GOPATH=/workspace" | |
| ] | |
| - name: "gcr.io/cloud-builders/npm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export ORG=[[ORG]] | |
| export ROOT=[[PROJECT_ROOT]] | |
| export PROJECT=${ROOT}-$(shuf -i 1000-9999 -n 1) | |
| export BILLING=[[BILLING]] | |
| export VERSION=$(shuf -i 1000-9999 -n 1) | |
| export REGION="us-central" | |
| export SERVICES="cloudresourcemanager" | |
| export ACCOUNT=$(gcloud config get-value account) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "html/template" | |
| "log" | |
| "math/rand" | |
| "net/http" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "time" | |
| "go.opencensus.io/exporter/stackdriver" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "log" | |
| "time" | |
| monitoring "cloud.google.com/go/monitoring/apiv3" | |
| googlepb "github.com/golang/protobuf/ptypes/timestamp" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| kind: Deployment | |
| apiVersion: extensions/v1beta1 | |
| metadata: | |
| name: coralhealth | |
| labels: | |
| run: coralhealth | |
| annotations: | |
| deployment.kubernetes.io/revision: '1' | |
| spec: |