dpguthrie / dbt-cloud-webhooks-datadog

Send dbt Cloud run results / metadata to datadog
MIT License
3 stars 0 forks source link

Unable to get logs #2

Open brandocomando opened 5 days ago

brandocomando commented 5 days ago

Hey, I'm trying to get logs ingested into datadog but getting these errors:

{'errors': [{'message': 'Error: This query exceeds the complexity limit. Consider breaking it up into separate queries or limiting to necessary fields. See the API docs for example queries and recommendations. The environment endpoint is recommended for most use cases to get the latest results for a dbt project.', 'locations': [{'line': 2, 'column': 1}], 'path': ['models'], 'extensions': {'queryType': 'job', 'code': 'COMPLEXITY_EXCEEDED'}}], 'data': None, 'exception': <HTTPError 413: 'Payload Too Large'>, 'status': 413, 'headers': <http.client.HTTPMessage object at 0x7f11da672f80>}
https://metadata.cloud.getdbt.com/graphql: HTTP Error 413: Payload Too Large

I'm not too familiar with the dbt apis or its python package, but seems like its asking for too much info?

dpguthrie commented 13 hours ago

Hey @brandocomando - ya, this repo needs to be updated with some changes to the discovery API. I'm working on a new way to do this over here, which contains updated code for sending over logs to datadog without using dbtc. Let me know if you have any questions.