-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Antoine THEBAUD
committed
Sep 21, 2023
1 parent
e3e5413
commit 71cf0c3
Showing
8 changed files
with
8,375 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"kind": "Dashboard", | ||
"metadata": { | ||
"name": "GaugeChartPanel", | ||
"createdAt": "2022-12-21T00:00:00Z", | ||
"updatedAt": "2023-01-26T17:29:46.991965Z", | ||
"version": 5, | ||
"project": "Showcase" | ||
}, | ||
"spec": { | ||
"duration": "6h", | ||
"panels": { | ||
"SingleGauge": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Single Gauge", | ||
"description": "Gauge chart with a single gauge" | ||
}, | ||
"plugin": { | ||
"kind": "GaugeChart", | ||
"spec": { | ||
"calculation": "mean", | ||
"thresholds": { | ||
"steps": [{ | ||
"value": 20 | ||
}] | ||
}, | ||
"format": { | ||
"unit": "percent" | ||
} | ||
} | ||
}, | ||
"queries": [{ | ||
"kind": "TimeSeriesQuery", | ||
"spec": { | ||
"plugin": { | ||
"kind": "PrometheusTimeSeriesQuery", | ||
"spec": { | ||
"query": "100 - ((node_memory_MemAvailable_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"} * 100) / node_memory_MemTotal_bytes{env=\"demo\", instance=\"demo.do.prometheus.io:9100\"})" | ||
} | ||
} | ||
} | ||
}] | ||
} | ||
} | ||
}, | ||
"layouts": [{ | ||
"kind": "Grid", | ||
"spec": { | ||
"display": { | ||
"title": "Row 1", | ||
"collapse": { | ||
"open": true | ||
} | ||
}, | ||
"items": [{ | ||
"x": 0, | ||
"y": 0, | ||
"width": 9, | ||
"height": 7, | ||
"content": { | ||
"$ref": "#/spec/panels/SingleGauge" | ||
} | ||
}] | ||
} | ||
}] | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,165 @@ | ||
{ | ||
"kind": "Dashboard", | ||
"metadata": { | ||
"name": "MarkdownPanel", | ||
"createdAt": "2022-12-21T00:00:00Z", | ||
"updatedAt": "2023-01-26T20:03:02.724739Z", | ||
"version": 3, | ||
"project": "Showcase" | ||
}, | ||
"spec": { | ||
"duration": "6h", | ||
"panels": { | ||
"Code": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Code", | ||
"description": "Markdown code formatting" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "`Inline code` with backticks\n\n```\n# code block\nprint '3 backticks or'\nprint 'indent 4 spaces'\n```" | ||
} | ||
} | ||
} | ||
}, | ||
"Headings": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Headings", | ||
"description": "Markdown headings" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "# First header\n\nFirst header\n=========\n\n## Second header\n\nSecond header\n---------\n\n### Third header\n\n#### Fourth header" | ||
} | ||
} | ||
} | ||
}, | ||
"Links": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Links", | ||
"description": "Markdown links" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "\n[Link](http://a.com)\n\n[Link][1]\n\n[1]: http://b.org" | ||
} | ||
} | ||
} | ||
}, | ||
"Lists": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Lists", | ||
"description": "Markdown lists" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "* List\n* List\n* List\n\n- List\n- List\n- List\n\n1. One\n2. Two\n3. Three\n\n1) One\n2) Two\n3) Three" | ||
} | ||
} | ||
} | ||
}, | ||
"Tables": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Tables", | ||
"description": "Markdown table" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "| Name | Data |\n| -- | -- |\n| Row 1 | Hi |\n| Row 2 | Hi |" | ||
} | ||
} | ||
} | ||
}, | ||
"Text": { | ||
"kind": "Panel", | ||
"spec": { | ||
"display": { | ||
"name": "Text", | ||
"description": "Markdown text formatting" | ||
}, | ||
"plugin": { | ||
"kind": "Markdown", | ||
"spec": { | ||
"text": "Unformatted\n\n*Italic*\n\n_Italic_\n\n**Bold**\n\n__Bold__\n\n> Blockquote\n\n---\n\n***" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"layouts": [{ | ||
"kind": "Grid", | ||
"spec": { | ||
"display": { | ||
"title": "Row 1", | ||
"collapse": { | ||
"open": true | ||
} | ||
}, | ||
"items": [{ | ||
"x": 0, | ||
"y": 0, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Headings" | ||
} | ||
}, { | ||
"x": 8, | ||
"y": 0, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Text" | ||
} | ||
}, { | ||
"x": 0, | ||
"y": 10, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Code" | ||
} | ||
}, { | ||
"x": 16, | ||
"y": 10, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Tables" | ||
} | ||
}, { | ||
"x": 8, | ||
"y": 10, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Lists" | ||
} | ||
}, { | ||
"x": 16, | ||
"y": 0, | ||
"width": 8, | ||
"height": 10, | ||
"content": { | ||
"$ref": "#/spec/panels/Links" | ||
} | ||
}] | ||
} | ||
}] | ||
} | ||
} |
Oops, something went wrong.