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

data-source/graphite

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

Graphite data source is built-in to Grafana

Grafana comes with a built-in Graphite data source plugin, eliminating the need to install a plugin.

Steps to add Graphite data source in UI

To add a Graphite data source: Click Connections in the left-side menu. Click Add new connection. Type Graphite in the search bar. Select the Graphite data source. Click Add new data source in the upper right. Grafana takes you to the Settings tab where you configure your Graphite connection.

Graphite data source basic settings

Basic settings include: Name (the display name for the data source, how you reference it in panels and queries; examples: graphite-1, graphite-metrics). Default (when enabled, sets this data source as the default for dashboard panels and automatically selects it when creating new panels).

Graphite data source HTTP settings

HTTP settings include: URL (sets the HTTP protocol, IP, and port of your graphite-web or graphite-api installation; must be accessible from the Grafana backend since access method is set to Server). Allowed cookies (by default Grafana removes forwarded cookies; specify cookie names here to allow them to be forwarded to the data source). Timeout (sets the HTTP request timeout in seconds).

Graphite data source authentication settings

Authentication settings include: Basic Auth (toggle to enable basic authentication; includes User for username and Password fields). With Credentials (toggle to include cookies and authentication headers in cross-origin requests). TLS Client Auth (toggle to enable TLS client authentication; includes ServerName for hostname verification on the certificate, Client Cert for the client certificate from CA or self-signed, Client Key for the private key). With CA Cert (toggle to authenticate with CA certificate; includes CA Cert field for the certificate to validate server certificate). Skip TLS Verify (toggle to bypass TLS certificate validation; not recommended unless necessary or for testing). Forward OAuth Identity (toggle to forward the user's upstream OAuth identity to the data source; Grafana includes the access token in the request).

Graphite data source custom HTTP headers

Custom HTTP Headers section allows passing additional information and metadata about the request or response. You can add a custom header with its value, allowing custom headers to be passed based on the needs of your Graphite instance.

Graphite data source details settings

Graphite details settings include: Version (select your Graphite version from the drop-down to control which functions are available in the Graphite query editor; use 1.1.x for Grafana Cloud Graphite). Graphite backend type (select the Graphite backend type; choosing Metrictank enables additional features like query processing metadata; Metrictank is a multi-tenant time series engine compatible with Graphite; use Default for Grafana Cloud Graphite). Rollup indicator (toggle to display an info icon in panel headers when data aggregation (rollup) occurs; only available when Metrictank is selected).

Graphite label mappings for Loki conversion

Label mappings are rules to tell Grafana how to pull pieces of the Graphite metric path into Loki labels when switching data sources. They are currently only supported between Graphite and Loki queries. When changing data source from Graphite to Loki, queries are automatically mapped based on defined rules. To create a mapping, specify the full path of the metric and replace the nodes you want to map with label names, using parentheses. Corresponding label values are extracted from your Graphite query during the data source switch. Grafana automatically maps all Graphite tags to labels, even if you haven't defined explicit mappings. When using matching patterns with {} (e.g., metric.{a,b}.value), Grafana converts them to Loki's regular expression matching syntax. If queries include functions, Graphite extracts the relevant metrics and tags, then matches them against mappings.

Graphite label mapping examples

Label mapping examples: alias(servers.west.001.cpu,1,2) maps to {cluster="west", server="001"}. alias(servers.*.{001,002}.*,1,2) maps to {server=~"(001,002)"}. interpolate(seriesByTag('foo=bar', 'server=002'), inf) maps to {foo="bar", server="002"}.

Graphite data source private data source connect (PDC)

Private data source connect is only for Grafana Cloud users and establishes a private, secured connection between a Grafana Cloud stack and data sources within a private network. Use the drop-down to locate the PDC URL. Refer to Private data source connect (PDC) documentation for setup instructions and Configure PDC for Grafana-specific configuration. Click Manage private data source connect to open your PDC connection page and view your configuration details.

Graphite data source test connection

After configuring Graphite data source options, click Save & test at the bottom to test the connection. A confirmation dialog box should appear saying 'Data source is working'.

Give your agent this brain