-
Notifications
You must be signed in to change notification settings - Fork 272
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
Migrate monotonic counter metrics to u64_counter!
#6350
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
304919a
Use metrics macros in persisted queries layer
goto-bus-stop 30fc35e
Use new metrics macro for counters in subgraph service
goto-bus-stop 148d9c4
Use new metrics macro for counters in graphql::Request
goto-bus-stop be452c9
Use new metrics macro for counting defer requests and responses
goto-bus-stop 7f744e9
Use new metrics macro for counting uplink fetches
goto-bus-stop eb3a8f7
Use new metrics macro for counting cache hits
goto-bus-stop a93408d
Use new metrics macro for counting authentication uses
goto-bus-stop f3bc20b
Use new metrics macros in timeout layer
goto-bus-stop 9130dbc
Use new metrics macros for reporting graphql error counts
goto-bus-stop 551170f
Use new metrics macros for reporting subscription events
goto-bus-stop b5497c6
Use new metrics macros for reporting state changes
goto-bus-stop 69e71b1
Use new metrics macros for reporting which telemetry system is enabled
goto-bus-stop 4858d24
Add back the deprecated metrics
goto-bus-stop fce826c
fmt
goto-bus-stop 3c43714
Simplify plugin_metrics
goto-bus-stop fd39d9b
Tweak `apollo.router.operations.telemetry` description
goto-bus-stop 0d6e222
docs: list the newly deprecated metrics
goto-bus-stop 01ebdef
Add a description for subgraph SigV4 signing
goto-bus-stop aca6024
Add apollo.router.operations.authorization description
goto-bus-stop cdb7940
Tweak `apollo_router_skipped_event_count` description
goto-bus-stop 54b62dd
docs: add migration instructions for metrics deprecated in favour of …
goto-bus-stop 7e02584
Docs-deprecate `apollo.router.graphql_error` metric
goto-bus-stop 35a24bb
Revert "Docs-deprecate `apollo.router.graphql_error` metric"
goto-bus-stop 947cb6d
Update deprecated metrics docs
goto-bus-stop 239e933
Document apollo_require_authentication_failure_count migration
goto-bus-stop d00ddbc
add changeset
goto-bus-stop d3a487f
we speak american
goto-bus-stop 6564296
Merge branch 'dev' into renee/ROUTER-297-monotonic-counters
goto-bus-stop File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
### Docs-deprecate several metrics ([PR #6350](https://github.com/apollographql/router/pull/6350)) | ||
|
||
These metrics are deprecated in favor of better, OTel-compatible alternatives: | ||
|
||
- `apollo_router_deduplicated_subscriptions_total` - use the `apollo.router.operations.subscriptions` metric's `subscriptions.deduplicated` attribute. | ||
- `apollo_authentication_failure_count` - use the `apollo.router.operations.authentication.jwt` metric's `authentication.jwt.failed` attribute. | ||
- `apollo_authentication_success_count` - use the `apollo.router.operations.authentication.jwt` metric instead. If the `authentication.jwt.failed` attribute is *absent* or `false`, the authentication succeeded. | ||
- `apollo_require_authentication_failure_count` - use the `http.server.request.duration` metric's `http.response.status_code` attribute. Requests with authentication failures have HTTP status code 401. | ||
- `apollo_router_timeout` - this metric conflates timed-out requests from client to the router, and requests from the router to subgraphs. Timed-out requests have HTTP status code 504. Use the `http.response.status_code` attribute on the `http.server.request.duration` metric to identify timed-out router requests, and the same attribute on the `http.client.request.duration` metric to identify timed-out subgraph requests. | ||
|
||
The deprecated metrics will continue to work in the 1.x release line. | ||
|
||
By [@goto-bus-stop](https://github.com/goto-bus-stop) in https://github.com/apollographql/router/pull/6350 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm wondering if we should not add
authentication.jwt.failed = false
in the future (for 2.0) to be consistent with what sigv4 is doing for example