Skip to content

Commit

Permalink
Add getting grafana alerts (#76)
Browse files Browse the repository at this point in the history
* Add getting grafana alerts request

* Update tests

* Fix lint errors

* Add checking if target grafana has a grafana alerting support

* Update limit to 100

* Update provisioning

---------

Co-authored-by: Mikhail Volkov <[email protected]>
  • Loading branch information
asimonok and mikhail-vl authored Jul 29, 2024
1 parent df61ae5 commit 4ec2243
Show file tree
Hide file tree
Showing 25 changed files with 1,068 additions and 99 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Change Log

## 3.2.0 (IN PROGRESS)
## 3.2.0 (2024-07-29)

### Breaking changes

Expand All @@ -9,6 +9,7 @@
### Features / Enhancements

- Added variables support in Dashboard Scene (#75)
- Added grafana alerts with states (#76)

## 3.1.0 (2024-07-16)

Expand Down
51 changes: 26 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@grafana/runtime": "^11.1.0",
"@grafana/schema": "^11.1.0",
"@grafana/ui": "^11.1.0",
"@volkovlabs/components": "^2.7.1",
"compare-versions": "^6.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
15 changes: 9 additions & 6 deletions provisioning/dashboards/metrics.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 0,
"id": 2,
"links": [],
"liveNow": false,
"panels": [
Expand All @@ -140,6 +141,7 @@
"mode": "continuous-GrYlRd"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand All @@ -153,6 +155,7 @@
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
Expand Down Expand Up @@ -372,6 +375,7 @@
},
"id": 6,
"options": {
"cellHeight": "sm",
"footer": {
"countRows": false,
"fields": "",
Expand All @@ -381,7 +385,7 @@
"showHeader": true,
"sortBy": []
},
"pluginVersion": "9.4.3",
"pluginVersion": "11.1.0",
"targets": [
{
"annotationDashboard": "any",
Expand Down Expand Up @@ -432,16 +436,15 @@
],
"refresh": "5s",
"revision": 1,
"schemaVersion": 38,
"style": "dark",
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
{
"current": {
"selected": true,
"text": "test",
"value": "test"
"selected": false,
"text": "device1",
"value": "device1"
},
"datasource": {
"type": "postgres",
Expand Down
Loading

0 comments on commit 4ec2243

Please sign in to comment.