Skip to content

Commit

Permalink
bump perses to latest version + add demo data to readonly instance + …
Browse files Browse the repository at this point in the history
…change local db format to json

Signed-off-by: Antoine THEBAUD <[email protected]>
  • Loading branch information
Antoine THEBAUD committed Sep 22, 2023
1 parent e3e5413 commit 64ef2c1
Show file tree
Hide file tree
Showing 16 changed files with 8,474 additions and 24 deletions.
19 changes: 19 additions & 0 deletions demo/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
readonly: true

database:
file:
folder: "dev/local_db"
extension: "json"

important_dashboards:
- project: "perses"
dashboard: "Node Exporter Full"

information: |-
# Welcome to the Demo instance of Perses!
This public demo instance is here to give you of what Perses looks like,
with some example dashboards & more.
This instance is readonly. If you wish to play with the edit mode,
go to the [Sandbox instance](https://sandbox.perses.dev/) instead.
69 changes: 69 additions & 0 deletions demo/local_db/dashboards/Showcase/GaugeChartPanel.json
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"
}
}]
}
}]
}
}
165 changes: 165 additions & 0 deletions demo/local_db/dashboards/Showcase/MarkdownPanel.json
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"
}
}]
}
}]
}
}
Loading

0 comments on commit 64ef2c1

Please sign in to comment.