Skip to content

Instantly share code, notes, and snippets.

View torkelo's full-sized avatar
💭
Releasing

Torkel Ödegaard torkelo

💭
Releasing
View GitHub Profile
@torkelo
torkelo / heatmap.json
Created May 31, 2022 14:07
heatmap.json
This file has been truncated, but you can view the full file.
[
{
"schema": {
"refId": "A",
"meta": {
"type": "heatmap-cells-sparse",
"executedQueryString": "Expr: rate(story_observations{job=\"example\"}[4s])\nStep: 1s",
"preferredVisualisationType": "graph"
},
"fields": [
@torkelo
torkelo / runbutton.patch
Last active November 16, 2021 09:02
Run button fixed width
diff --git a/packages/grafana-ui/src/components/RefreshPicker/RefreshPicker.tsx b/packages/grafana-ui/src/components/RefreshPicker/RefreshPicker.tsx
index 1c215b7668..70331efb08 100644
--- a/packages/grafana-ui/src/components/RefreshPicker/RefreshPicker.tsx
+++ b/packages/grafana-ui/src/components/RefreshPicker/RefreshPicker.tsx
@@ -1,4 +1,4 @@
-import React, { PureComponent } from 'react';
+import React, { CSSProperties, PureComponent } from 'react';
import formatDuration from 'date-fns/formatDuration';
import { SelectableValue, parseDuration } from '@grafana/data';
import { ButtonSelect } from '../Dropdown/ButtonSelect';
@torkelo
torkelo / file.json
Created October 8, 2021 11:20
horizontal repeat same row issue
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
@torkelo
torkelo / live.sh
Created May 26, 2021 18:35
Grafana live streaming
#!/bin/bash
value=50
while true; do
value=$(( value + (RANDOM % 10) -5 ))
if ((value >= 100)); then
value=100
fi
if ((value <= 0)); then
@torkelo
torkelo / Grafana_CLA.md
Created April 20, 2021 17:22
Grafana_CLA_v3

Grafana Labs Software Grant and Contributor License Agreement ("Agreement")

This agreement is based on the Apache Software Foundation Contributor License Agreement. (v r190612)

Thank you for your interest in software projects stewarded by Raintank, Inc. dba Grafana Labs (“Grafana Labs”). In order to clarify the intellectual property license granted with Contributions from any person or entity, Grafana Labs must have a Contributor License Agreement (CLA) on file that has been agreed to by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of Grafana Labs and its users; it does not change your rights to use your own Contributions for any other purpose. This Agreement allows an individual to contribute to Grafana Labs on that individual’s own behalf, or an entity (the "Corporation") to submit Contributions to Grafana Labs, to authorize Contributions submitted by its designated employees to Grafana Labs, and to gran

v4
Do you agree?
This is the updated topic
Testing
Updated second time
@torkelo
torkelo / dashboard.json
Created November 11, 2020 13:41
dashboard_links.json
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",