Grafana GCX (CLI)
Notes
no notes yet
Breaking changes
gcx setup statusnow reports a failed instrumentation check as unknown (enabled: null) instead of disabled. It exits 3 on authentication failures and 1 on other probe failures. It used to exit 4. The JSON document gains an optionalerrorobject. Update scripts that branch on exit 4 or onenabled: false. (#1699)gcx logs metricswith no time flags now runs an instant query. It returns one value per series. It used to run a range query over the last minute and return two points per series. Callers that sum the points now get the correct count, so their totals change. The--share-linkURL now opens an instant query in Explore. (#1786)gcx logs queryandgcx datasources loki querynow reject a negative--limit. A negative value used to run with the Loki default line limit and exit 0. Remove the negative value from scripts.--limit 0still sends no limit. (#1404)gcx apinow rejects an absolute URL as the path and exits 2. It used to join the URL to the configured Grafana host, which sent the request to a wrong address. Pass a path that is relative to the stack. (#1735)- On Grafana Cloud targets,
gcx logs query,gcx logs metrics, and thegcx datasources lokicommands now estimate the cost of a Loki query before they run it. A query that is too expensive fails with aQuery blockederror and exit 1. Narrow the selector or the time range, or pass--force. gcx enforces only a budget that your stack policy serves. Without a served policy, gcx logs what it would block and runs the query. Self-managed targets are not checked. (#1759) gcx frontend apps createandupdatenow reject an unknown or misspelled field in a manifest, such asallowedOriginsinstead ofcorsOrigins. They used to drop the field and report success. (#1758)gcx irmincident create now rejects a non-emptyspec.description, and incident delete previews now fail with exit 4. The IRM API supports neither action. Both used to report success. (#1737, #1736)- An explicit human-format
-o, such as-o yaml, now overrides agent mode for errors. gcx prints the error on stderr. It no longer writes agcx.errorJSON document to stdout. (#1655)
New commands and improvements
- Add
gcx annotationscommands to manage Grafana annotations. - Add
gcx logs archivecommands (experimental). - Add
gcx mlcommands for forecasts, holidays, and outlier detectors. - Add
gcx profiles diffto compare two profiles. - Add
gcx resources searchfor hybrid search (experimental). - Add
--filename-by=titletogcx resources pull. - Add
--drilldown-linkto the Loki, Prometheus, Tempo, and Pyroscope queries. - Add
gcx help exit-codeshelp topic. - Add Assistant usage views.
- Add native Windows installation and runtime support.
- Add
thresholdsupsert, delete, and update commands to the Knowledge Graph (KG). - Add
--skip-promql-evalto KGprom-rules upsert. - Show write API availability in
gcx kg status. - Add Agent Observability model cards and
model-rates resolve. - Add rule actions to evaluators and
experiments list-filter-values. - Let
gcx synth checks testtarget existing checks. - Add OnCall personal notification rules, and align OnCall schemas.
- Fix Loki: send
queryTypeinstant for metric queries without a time range. - Fix Loki: send
supportingQueryTypeon/api/ds/queryrequests. - Fix Loki: include total count in
query-patternsJSON and YAML output. - Fix Pyroscope: keep profile selection in pprof exports.
- Fix profiles: stop double-counting recursive CPU time.
- Fix profiles: report unsupported adaptive management.
- Fix Assistant: read investigation chats by engine.
- Fix Assistant: explain missing permissions on 403 errors.
- Fix Assistant: keep legacy conversation tool fields.
- Fix Agent Observability: always request a bounded page size.
- Fix Agent Observability: keep
execution_modeandfilterable_tag_keyson rules. - Fix Agent Observability: explain a missing plugin.
- Fix Faro: resolve app arguments safely.
- Fix IRM: restore personal notification rules with user authentication.
- Fix SLO: update pushes without a UUID by resource name.
- Fix resources: skip unsupported provider list operations.
- Fix resources: keep dashboard schemas that convert successfully.
- Fix resources: show returned push identities on request.
- Fix dashboards: report actual snapshot image dimensions.
- Fix k6: keep configured run threshold options.
- Fix synthetic monitoring: keep
basicMetricsOnlyfalse on checks. - Fix lint: resolve datasource variables before PromQL validation.
- Fix BigQuery: filterable metadata lists and clearer permission errors.
- Classify datasource proxy authentication failures.
- Record the last
gcx signupstep assignup_stagein anonymous usage statistics. gcx shows the one-time telemetry notice again to disclose the new field. A failed OAuth token exchange ingcx loginorgcx signupnow reports its HTTP status. - Show API server warnings at the default verbosity.
- Keep angle-bracket placeholders in terminal
--helpoutput. - Let
GCX_AUTO_APPROVEunlockthresholds update -f -. - Unify table output with shared adapters across many commands.
- Shorten plugin skill descriptions.
- Add the
Invocation.HomeFSread-only home to the sandbox. - Update to Go 1.27, and update Go dependencies and
golangci-lint. - Update Kubernetes dependencies, and the Docker base image digest.
- Add the Authentication and Permissions pages, and rewrite the README and guides.
- Add the installation docs for
asdfand Windows. - Propose organization access and SCIM commands in an RFC.