Skip to content

Commit

Permalink
refactor plugin module structure
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Bernal <gabrielbernalp@gmail.com>
  • Loading branch information
jgbernalp committed Dec 19, 2024
1 parent a537052 commit 19e8a91
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 50 deletions.
12 changes: 7 additions & 5 deletions GaugeChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
"perses": {
"plugins": [
{
"display": {
"name": "Gauge Chart"
},
"kind": "GaugeChart",
"pluginType": "Panel"
"kind": "Panel",
"spec": {
"name": "GaugeChart",
"display": {
"name": "Gauge Chart"
}
}
}
]
}
Expand Down
12 changes: 7 additions & 5 deletions MarkdownChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,13 @@
"perses": {
"plugins": [
{
"display": {
"name": "Markdown Chart"
},
"kind": "MarkdownChart",
"pluginType": "Panel"
"kind": "Panel",
"spec": {
"display": {
"name": "Markdown Chart"
},
"name": "MarkdownChart"
}
}
]
}
Expand Down
60 changes: 35 additions & 25 deletions Prometheus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,39 +33,49 @@
"perses": {
"plugins": [
{
"display": {
"name": "Prometheus Datasource"
},
"kind": "PrometheusDatasource",
"pluginType": "Datasource"
"kind": "Datasource",
"spec": {
"display": {
"name": "Prometheus Datasource"
},
"name": "PrometheusDatasource"
}
},
{
"display": {
"name": "Prometheus Time Series Query"
},
"kind": "PrometheusTimeSeriesQuery",
"pluginType": "TimeSeriesQuery"
"kind": "TimeSeriesQuery",
"spec": {
"display": {
"name": "Prometheus Time Series Query"
},
"name": "PrometheusTimeSeriesQuery"
}
},
{
"display": {
"name": "Prometheus Label Variable"
},
"kind": "PrometheusLabelValuesVariable",
"pluginType": "Variable"
"kind": "Variable",
"spec": {
"display": {
"name": "Prometheus Label Variable"
},
"name": "PrometheusLabelValuesVariable"
}
},
{
"display": {
"name": "Prometheus Names Variable"
},
"kind": "PrometheusLabelNamesVariable",
"pluginType": "Variable"
"kind": "Variable",
"spec": {
"display": {
"name": "Prometheus Names Variable"
},
"name": "PrometheusLabelNamesVariable"
}
},
{
"display": {
"name": "Prometheus PromQL Variable"
},
"kind": "PrometheusPromQLVariable",
"pluginType": "Variable"
"kind": "Variable",
"spec": {
"display": {
"name": "Prometheus PromQL Variable"
},
"name": "PrometheusPromQLVariable"
}
}
]
}
Expand Down
12 changes: 7 additions & 5 deletions StatChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
"perses": {
"plugins": [
{
"display": {
"name": "Stat Chart"
},
"kind": "StatChart",
"pluginType": "Panel"
"kind": "Panel",
"spec": {
"display": {
"name": "Stat Chart"
},
"name": "StatChart"
}
}
]
}
Expand Down
12 changes: 7 additions & 5 deletions StaticListVariable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
"perses": {
"plugins": [
{
"display": {
"name": "Static List Variable"
},
"kind": "StaticListVariable",
"pluginType": "Variable"
"kind": "Variable",
"spec": {
"display": {
"name": "Static List Variable"
},
"name": "StaticListVariable"
}
}
]
}
Expand Down
12 changes: 7 additions & 5 deletions TimeSeriesChart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@
"perses": {
"plugins": [
{
"display": {
"name": "Time Series Chart"
},
"kind": "TimeSeriesChart",
"pluginType": "Panel"
"kind": "Panel",
"spec": {
"display": {
"name": "Time Series Chart"
},
"name": "TimeSeriesChart"
}
}
]
}
Expand Down

0 comments on commit 19e8a91

Please sign in to comment.