new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Grafana dashboards · all subjects

cli

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Grafana CLI command syntax

The general syntax for commands in Grafana server CLI is: grafana cli [global options] command [command options] [arguments...]

Terraform provider version for saved queries

The Grafana Terraform provider version must be 4.6.0 or higher to manage saved queries.

Grafana Terraform provider configuration

To configure the Grafana Terraform provider for managing saved queries, create a provider block with url set to the Grafana instance URL (e.g., https://my-stack.grafana.net/) and auth set to the service account token.

grafana_apps_queries_query_v1 resource fields

The grafana_apps_queries_query_v1 Terraform resource supports the following fields in the spec block: title (required, display name of the saved query), description (longer description of the saved query), is_visible (whether the saved query is visible in the query library), is_locked (whether the saved query is locked and cannot be edited in the UI, for UI display only and not for security), tags (tags used to filter the saved query), targets (the query targets that make up the saved query, at least one target is required), and vars (template variables that can be interpolated into the query targets). The metadata block contains the uid field to uniquely identify the saved query.

Import existing saved query to Terraform

To bring an existing saved query under Terraform management, run the command: terraform import grafana_apps_queries_query_v1.example example-saved-query, replacing example-saved-query with the UID of the saved query.

gcx CLI command for dashboard deployment

The gcx CLI command to deploy a Grafana dashboard is: `gcx resources push dashboards --path ./dashboard.json`. This command authenticates using GRAFANA_SERVER, GRAFANA_STACK_ID, and GRAFANA_TOKEN environment variables.

Give your agent this brain