-
Notifications
You must be signed in to change notification settings - Fork 936
feat: expose app insights as Prometheus metrics #10346
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
Changes from all commits
c944ede
5aad13d
a987458
514aa33
1952141
1c71868
5687a18
16eedee
52c3287
642e279
ca722de
b2deb7a
026c1a0
7a7087c
5140fbc
be7b50e
3afec05
9084b30
0e85cd4
890511c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Would it make sense to keep this part as similar as
GetTemplateAppInsights
as possible, to reduce the maintenance burden/overhead of figuring out if a change should affect both? AFAICT the only change is removal ofaccess_method
, but if we drop that there's also other simplifications we could do. Similarly, I don't think we gain much by dropping it.Uh oh!
There was an error while loading. Please reload this page.
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.
The reasons why I decided to "fork" the query are:
AND CASE WHEN COALESCE(array_length(@template_ids::uuid[], 1), 0) > 0 THEN w.template_id = ANY(@template_ids::uuid[]) ELSE TRUE END
inGetTemplateAppInsights
will be always false, so I just dropped it.array_agg
in the last SELECT operation.I would rather keep the forked query, but I could add a comment to justify above differences? Unless you are aware of a smart trick which isn't a FUNCTION.
EDIT:
I guess we can improve this in a follow-up 👍