-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Join PipeHistory queries with pipes for additional tags #16222
Conversation
@hestonhoffman Thanks |
That's a good question for @DataDog/agent-integrations :) |
snowflake/CHANGELOG.md
Outdated
|
||
***Added***: | ||
|
||
* Added `pipe_schema` and `pipe_catalog` tags to snowpipe metrics. ([#16222](https://github.com/DataDog/integrations-core/pull/16222)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yogevyuval would you mind undoing this change, updating your ddev
to the latest version and running ddev release changelog new
? We recently reworked the way we generate changelogs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iliakur Done. Can you take a look again?
Also - anyone can help with validating and tests?
ddev/changelog.d/16222.added
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, not sure why this file got added. Was this the result of running the ddev command?
Could you post the output of git status
here? After we remove this file, the PR lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a mistake, i removed it.
Any way to confirm my query does not break anything?
@iliakur What's next needed here? Anyway to validate the query? |
@yogevyuval sorry about the delay. I'm about to go on holiday, my colleague @alopezz will take over next week. Have a good weekend and thanks again for your patience! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sadly, we don't have an automated way of testing the integration against an actual instance of Snowflake. If you want, you can add a test with a mocked response such as those on https://github.com/DataDog/integrations-core/blob/master/snowflake/tests/test_queries.py, but since I don't see one already in place for this query, I'm not going to block the PR based on that.
I'm going to test the PR out manually to make sure the query is valid before approval.
Co-authored-by: Alex Lopez <alex.lopez.zorzano@gmail.com>
Co-authored-by: Alex Lopez <alex.lopez.zorzano@gmail.com>
Fixed the PR comments (and adjusted the changelog entry accordingly). |
@alopezz Did you have a chance to run this? Anything else from my side needed? |
Sorry for the delay. I was trying to get the necessary data into a test account to get some data from the modified query but I haven't been able to do so. The query itself is fine in that it doesn't produce an error, I'm simply not getting any results for extra confirmation. Would you be able to share some example results of that query? Since you've found the need to improve the query I suppose you should be able to get some data from it. I can then do some final testing out of that. |
@alopezz So I wanted to make the query actually compiles well, no permission errors or other things like that |
I see what you mean (I hadn't payed close enough attention to that); technically it shouldn't matter because that query is always meant to be run against the |
@alopezz I removed the qualifications |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for your patience!
What does this PR do?
This PR adds 2 additional tags to the PipeHistory query
Motivation
Without these tags, these metrics are almost useless. Imagine the following:
2 schemas, one is dev env, one is production. Each schema has a pipe named “INPUT_PIPE” that ingests data into snowflake.
Without these tags, the metric is useless, because it aggregates across non related schemas.
qa/skip-qa
label if the PR doesn't need to be tested during QA.