Repository navigation
Add Insights CLI commands - #2067
Merged
Merged
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
…2044) * Add Insights alert instance, PromQL, and logs commands Add doctl insights alert-instance (list, get), metrics (query, query-range, labels, label-values, series), and logs search commands backed by the Insights service, with input validation, text and Prometheus-shaped JSON output, and unit tests. Related: COBS-1695 * Fix Insights flag help placeholders pflag treats the first backticked word in a flag's usage as its value placeholder, which produced help such as --end 2026-09-01T00:00:00Z. Drop incidental backticks and keep only intentional placeholders. * Reuse shared Insights helpers from alert rule commands Use the shared Insights flag names, AddStringArrayFlag and getInsightsStringArray for --match, readInsightsRequest for logs request and filter files (adding YAML support), and rejectRequestFileFlagMix for request-file conflicts.
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
* Align Insights tracing wire contract Co-authored-by: Cursor <cursoragent@cursor.com> * Correct Insights tracing filter help Co-authored-by: Cursor <cursoragent@cursor.com> * Update godo to v1.230.0 Co-authored-by: Cursor <cursoragent@cursor.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
SSharma-10
reviewed
Oct 22, 2026
SSharma-10
reviewed
Oct 22, 2026
Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Adds the complete Insights CLI surface developed under COBS-1630:
The branch is rebased onto the latest
mainand uses godo v1.230.0.Validation
go build ./cmd/doctlgo vet ./...