Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Did it ever worked for anyone #11

Open
rajuswamy094 opened this issue Sep 15, 2021 · 2 comments
Open

Did it ever worked for anyone #11

rajuswamy094 opened this issue Sep 15, 2021 · 2 comments

Comments

@rajuswamy094
Copy link

Did it ever worked for anyone.
AssertionError: Failed #4: The # of metric descriptors written from list_metrics doesn'tmatch the # of records received from the Monitoring API call bq_metrics_cnt: 0, metric_descriptors_cnt: 4214

@gojanpaolo
Copy link

Same error upon running python end_to_end_test_run.py in README.md

  obj, end = self.scan_once(s, idx)
        }
    ],
FAIL: test_4 (__main__.AppTest)
list_metric_row_cnt: 0
        ]
        }
    ],
FAIL: test_4 (__main__.AppTest)
test 4. The number of messages written to BigQuery from list_metrics
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jan_paologo/stackdriver-metrics-export/test/end_to_end_test_run.py", line 245, in test_4
    assert metric_descriptors_cnt == bq_metrics_cnt, \
AssertionError: Failed #4: The # of metric descriptors written from list_metrics  doesn'tmatch the # of records received from the Monitoring API call bq_metrics_cnt: 0, metric_descriptors_cnt: 8495

----------------------------------------------------------------------
Ran 4 tests in 11.227s

FAILED (failures=1)

@gojanpaolo
Copy link

Looks like there's no log of the batch id

The following returns logs

gcloud logging read "resource.type=\"gae_app\" AND resource.labels.module_id=\"list-metrics\" AND logName=\"projects/$PROJECT_ID/logs/appengine.googleapis.com%2Frequest_log\" AND timestamp >= \"$TIMESTAMP\"" 

sample log

httpRequest:
  status: 200
insertId: 645706840008ddb6bf167951
labels:
  clone_id: 00c61b117cca1067c9b3de7b5c5e2b3006749b1c65f010e2ca0180c19e35389cf465fe02e597d5bf0a71094d9fcd08ed8262bda4e6d5f0e650
logName: projects/first-gaming-dev/logs/appengine.googleapis.com%2Frequest_log
operation:
  first: true
  id: 6457068400ff08bec8b61a0a0e0001707e66697273742d67616d696e672d64657600016c6973742d6d6574726963733a32303233303530377430313335303000010102
  last: true
  producer: appengine.googleapis.com/request_id
protoPayload:
  '@type': type.googleapis.com/google.appengine.logging.v1.RequestLog
  appEngineRelease: 1.9.71
  appId: p~first-gaming-dev
  endTime: '2023-05-07T02:01:40.580839Z'
  finished: true
  first: true
  host: 0.20230507t013500.list-metrics.first-gaming-dev.appspot.com
  httpVersion: HTTP/1.1
  instanceId: 00c61b117cca1067c9b3de7b5c5e2b3006749b1c65f010e2ca0180c19e35389cf465fe02e597d5bf0a71094d9fcd08ed8262bda4e6d5f0e650
  ip: 0.1.0.3
  latency: 0.007472s
  megaCycles: '2249'
  method: GET
  moduleId: list-metrics
  status: 200
  traceId: 64818aa6d5773eac9c69c4446f593db9
  traceSampled: true
  urlMapEntry: <unused>
  versionId: 20230507t013500
receiveTimestamp: '2023-05-07T02:01:40.586540847Z'
resource:
  labels:
    module_id: list-metrics
    project_id: first-gaming-dev
    version_id: 20230507t013500
    zone: us-east1-5
  type: gae_app
spanId: '1428930095142637327'
timestamp: '2023-05-07T02:01:40.573367Z'
trace: projects/first-gaming-dev/traces/64818aa6d5773eac9c69c4446f593db9
traceSampled: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants