You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2024. It is now read-only.
I was able to run full_deploy without issue. I see the various schedulers and gcp resources configured, but the metric data has not populated the Cloud Storage Bucket or the BigQuery dataset.
This is the output of make full_deploy
(base) user@MacBook-Pro gcp-monitoring-metric-exporter % make full_deploy
gcloud functions deploy "metric_exporter" --region="us-central1" --runtime="python37" --trigger-http --source="./cloud_function"
--entry-point="export" --project="" --service-account="metric-exporter-cf-sa@"""".iam.gserviceaccount.com"
--memory=128 --timeout=540
Deploying function (may take a while - up to 2 minutes)...⠛
For Cloud Build Logs, visit: https://console.cloud.google.com/cloud-build/builds;region=us-central1/da9ea4a2-f09e-4c93-840c-a4df7804d1ed?project=773820357926
Deploying function (may take a while - up to 2 minutes)...done.
availableMemoryMb: 128
buildId: da9ea4a2-f09e-4c93-840c-a4df7804d1ed
buildName: projects/773820357926/locations/us-central1/builds/da9ea4a2-f09e-4c93-840c-a4df7804d1ed
dockerRegistry: CONTAINER_REGISTRY
entryPoint: export
httpsTrigger:
securityLevel: SECURE_OPTIONAL
url: https://us-central1-.cloudfunctions.net/metric_exporter
ingressSettings: ALLOW_ALL
labels:
deployment-tool: cli-gcloud
name: projects//locations/us-central1/functions/metric_exporter
runtime: python37
serviceAccountEmail: metric-exporter-cf-sa@.iam.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/uploads-988628145621.us-central1.cloudfunctions.appspot.com/67e0b7f9-1d04-4780-82a8-dc94d1664587.zip
status: ACTIVE
timeout: 540s
updateTime: '2022-07-14T23:58:42.311Z'
versionId: '4'
python validate_filter.py --project="" --filter='metric.type = "compute.googleapis.com/instance/cpu/usage_time"'
Sending request to the server...
Got response from the server
API call tested successfully
python build_message_body.py --project="" --filter='metric.type = "compute.googleapis.com/instance/cpu/usage_time"' --weeks=0 --days=0 --hours=1 --bq_destination_dataset="CPU_USAGE"
--bq_destination_table="cpu" --MSG_TMP_DIR="./msg_tmp" --MSG_BODY_FILE_NAME="msg.json" --BUCKET_NAME="""-metric-exporter" --PAGE_SIZE=500
gcloud scheduler jobs create http "cpu" --project="" --schedule="*/5 * * * *"
--uri=https://"us-central1"-"".cloudfunctions.net/"metric_exporter" --http-method=POST
--headers="Content-Type=application/json,User-Agent=Google-Cloud-Scheduler"
--oidc-service-account-email="metric-exporter-scheduler-sa@"""".iam.gserviceaccount.com"
--message-body-from-file="./msg_tmp""/""msg.json"
--time-zone="UTC"
--location="us-central1"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was able to run full_deploy without issue. I see the various schedulers and gcp resources configured, but the metric data has not populated the Cloud Storage Bucket or the BigQuery dataset.
This is the output of make full_deploy
(base) user@MacBook-Pro gcp-monitoring-metric-exporter % make full_deploy
gcloud functions deploy "metric_exporter" --region="us-central1" --runtime="python37" --trigger-http --source="./cloud_function"
--entry-point="export" --project="" --service-account="metric-exporter-cf-sa@"""".iam.gserviceaccount.com"
--memory=128 --timeout=540
Deploying function (may take a while - up to 2 minutes)...⠛
For Cloud Build Logs, visit: https://console.cloud.google.com/cloud-build/builds;region=us-central1/da9ea4a2-f09e-4c93-840c-a4df7804d1ed?project=773820357926
Deploying function (may take a while - up to 2 minutes)...done.
availableMemoryMb: 128
buildId: da9ea4a2-f09e-4c93-840c-a4df7804d1ed
buildName: projects/773820357926/locations/us-central1/builds/da9ea4a2-f09e-4c93-840c-a4df7804d1ed
dockerRegistry: CONTAINER_REGISTRY
entryPoint: export
httpsTrigger:
securityLevel: SECURE_OPTIONAL
url: https://us-central1-.cloudfunctions.net/metric_exporter
ingressSettings: ALLOW_ALL
labels:
deployment-tool: cli-gcloud
name: projects//locations/us-central1/functions/metric_exporter
runtime: python37
serviceAccountEmail: metric-exporter-cf-sa@.iam.gserviceaccount.com
sourceUploadUrl: https://storage.googleapis.com/uploads-988628145621.us-central1.cloudfunctions.appspot.com/67e0b7f9-1d04-4780-82a8-dc94d1664587.zip
status: ACTIVE
timeout: 540s
updateTime: '2022-07-14T23:58:42.311Z'
versionId: '4'
python validate_filter.py --project="" --filter='metric.type = "compute.googleapis.com/instance/cpu/usage_time"'
Sending request to the server...
Got response from the server
API call tested successfully
python build_message_body.py --project="" --filter='metric.type = "compute.googleapis.com/instance/cpu/usage_time"' --weeks=0 --days=0 --hours=1 --bq_destination_dataset="CPU_USAGE"
--bq_destination_table="cpu" --MSG_TMP_DIR="./msg_tmp" --MSG_BODY_FILE_NAME="msg.json" --BUCKET_NAME="""-metric-exporter" --PAGE_SIZE=500
gcloud scheduler jobs create http "cpu" --project="" --schedule="*/5 * * * *"
--uri=https://"us-central1"-"".cloudfunctions.net/"metric_exporter" --http-method=POST
--headers="Content-Type=application/json,User-Agent=Google-Cloud-Scheduler"
--oidc-service-account-email="metric-exporter-scheduler-sa@"""".iam.gserviceaccount.com"
--message-body-from-file="./msg_tmp""/""msg.json"
--time-zone="UTC"
--location="us-central1"
The text was updated successfully, but these errors were encountered: