Skip to content

Instantly share code, notes, and snippets.

View jamesvnz's full-sized avatar

James Valentine jamesvnz

  • New Zealand
View GitHub Profile
@polleyg
polleyg / common_sinks_and_metrics.md
Last active February 2, 2021 01:29
Common sinks and metrics we use for GCP
#!/usr/bin/env bash
PROJECT="<project-id>"

### Sinks ###

#Base sink for all logs to BigQuery
gcloud logging sinks create --quiet --project $project ${project}_bigquery_sink bigquery.googleapis.com/projects/billing-exports-184901/datasets/CLOUD_LOGGING_EXPORTS --log-filter "resource.type:*"

#### Metrics ####