-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to dynamically determine what APIs to query for metrics (#…
…10815) * Add test data and limit_reqs endpoint * Add support for new endpoints in check * Update metadata with new metrics * add more tests for tags * Add more tests and http limit conns endpoint * Add tests for all plus api versions * Reformat code and fix typos * Remove unneeded mappings * Remove unneeded mapping and test fixture * Properly handle metrics that should be counts * Change more metrics to count * Fix short names of metrics * Update style and add assertion for all count metrics * Update conf.example with new description * Update test folder structure and add mapping for plus api endpoints * Assert metadata in all tests * Add missing count metrics, assert metrics covered, and refactor tests * Remove slashes in directories * Begin _get_enabled_apis to dynamically determine enabled apis * Add fixtures * Comple _get_enabled_endpoints and add more fixtures and test * Add config models and option * Add more tests for only_query_enabled_endpoints * Update config models and remove conflicts * Update endpoint mapping and fix mock return values * Add comments and more logging * Add more log lines and assert them * Don't mention stream disabled when only_query_enabled_endpoints is enabled * Add another test for edge cases * Use more correct url for test * Apply suggestions from code review Co-authored-by: Jorie Helwig <jorie.helwig@datadoghq.com> * Fix style * Make endpoints a set * Use dd_run_check * Remove unused caplog * Update nginx/assets/configuration/spec.yaml Co-authored-by: Christine Chen <ChristineTChen@users.noreply.github.com> * Sync example config * Use urljoin Co-authored-by: Jorie Helwig <jorie.helwig@datadoghq.com> Co-authored-by: Christine Chen <ChristineTChen@users.noreply.github.com>
- Loading branch information
Showing
14 changed files
with
285 additions
and
34 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
["nginx","processes","connections","slabs","http","resolvers","ssl"] |
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 @@ | ||
["requests","server_zones","caches","keyvals","upstreams"] |
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 @@ | ||
[] |
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 @@ | ||
["nginx","processes","connections","slabs","http","stream","resolvers","ssl"] |
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 @@ | ||
["requests","server_zones","location_zones","caches","limit_conns","limit_reqs","keyvals","upstreams"] |
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 @@ | ||
["server_zones","limit_conns","keyvals","zone_sync","upstreams"] |
Oops, something went wrong.