Commit Graph

34 Commits

Author SHA1 Message Date
ismail simsek
cc492b916d Update react-table to v8 (#2131)
Updating react-table to v8. 
- Migrating the existing table to v8
- Preserving the visuals and logic

What's done?
- Cell components are moved under `Cells` folder
- Old styles for react-table-6 is removed.
- Old types are removed
- All logic was preserved
- Some cell components are removed for simplicity


Fixes: https://github.com/grafana/oss-big-tent-squad/issues/125
2025-12-10 19:25:04 +01:00
ismail simsek
3da36ec2bb Chore: Convert problems to functional component (#2125)
This is a prerequisite for ugrading the react-table to v8.
- No logic change is introduced. 
- Update DataSourceRef imports. The old import was deprecated.
2025-12-03 14:55:35 +01:00
Christos Diamantis
30c0b0e982 Ability to execute "Manual event actions" on Zabbix Problems panel (#2024)
This PR resolves the below issues:
#2022 #1465 

Specifically, when executing a script on the problems panel, we do check
if the script scope is event or host.
Based on the script scope, the Zabbix API call is constructed
differently.

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2025-07-09 13:56:14 +00:00
Gareth Dawson
fd616b6446 track executed queries and panel clicks 2023-09-13 12:30:58 +01:00
Alexander Zobnin
41d292c51d Problems: Add operational data field, closes #1260 2023-01-20 16:52:48 +01:00
Alexander Zobnin
bc62e35477 Problems: Allow HTML in description (#1559)
* Problems: allow HTML in problem description, closes #1557

* Don't replace new line with <br>

* Replace line brakes with <br> if allowDangerousHTML enabled

* List layout: only show html formatted description if option is enabled
2023-01-20 15:11:12 +01:00
Alexander Zobnin
a5c239f77b Problems count mode (#1493)
* Problems count mode

* Use tooltip from grafana ui

* Add editors for new modes

* Fix macro mode

* Fix bugs

* Unify editors to use one Triggers editor for all count queries

* Use time range toggle for triggers query, #918

* Add item tags suport for triggers count mode

* Fix triggers count by items

* Use data frames for triggers data, #1441

* Return empty result if no items found

* Add migration for problems count mode

* bump version to 4.3.0-pre

* Add zip task to makefile

* Add schema to query model

* Minor refactor

* Refactor: move components to separate files

* Minor refactor

* Support url in event tags

* Add tooltip with link url

* Update grafana packages

* Fix adding new problems panel

* ProblemDetails: rewrite as a functional component

* minor refactor
2023-01-20 14:23:46 +01:00
Alexander Zobnin
445b46a6aa Fix host maintenance label 2022-12-29 16:48:03 +01:00
Alexander Zobnin
e3e896742b Build plugin with grafana toolkit (#1539)
* Use grafana toolkit template for building plugin

* Fix linter and type errors

* Update styles building

* Fix sass deprecation warning

* Remove empty js files produced by webpack building sass

* Fix signing script

* Replace classnames with cx

* Fix data source config page

* Use custom webpack config instead of overriding original one

* Use gpx_ prefix for plugin executable

* Remove unused configs

* Roll back react hooks dependencies usage

* Move plugin-specific ts config to root config file

* Temporary do not use rst2html for function description tooltip

* Remove unused code

* remove unused dependencies

* update react table dependency

* Migrate tests to typescript

* remove unused dependencies

* Remove old webpack configs

* Add sign target to makefile

* Add magefile

* Update CI test job

* Update go packages

* Update build instructions

* Downgrade go version to 1.18

* Fix go version in ci

* Fix metric picker

* Add comment to webpack config

* remove angular mocks

* update bra config

* Rename datasource-zabbix to datasource (fix mage build)

* Add instructions for building backend with mage

* Fix webpack targets

* Fix ci backend tests

* Add initial e2e tests

* Fix e2e ci tests

* Update docker compose for cypress tests

* build grafana docker image

* Fix docker stop task

* CI: add Grafana compatibility check
2022-12-09 14:14:34 +03:00
Alexander Zobnin
9b2079c1da Migrate problems panel to React (#1532)
* Replace default angular app config editor

* Problems panel: migrate module to ts

* Problems panel options editor to react

* Problems panel react WIP

* Fix explore button

* Problems panel alert list layout WIP

* Refactor

* Minor tweaks on panel options

* remove outdated tests

* Update typescript

* Draft for tag event handling

* Remove unused files
2022-11-30 14:01:21 +03:00
Alexander Zobnin
709e3ff65a Fix type errors (tests are failed) 2022-02-15 18:08:13 +03:00
Alexander Zobnin
8499d726b2 Fix Explore button, fixes #1240
Also pass dashboard time range to the explore view.
2021-08-09 17:55:37 +03:00
Alexander Zobnin
cee10f54bf Preserve expanded problems, fix #1143 2021-01-20 15:27:19 +03:00
Alexander Zobnin
6841fa0386 Execute scripts from problem details 2020-05-28 10:44:16 +03:00
Alexander Zobnin
092acec295 Exec script dialog 2020-05-28 10:44:16 +03:00
Alexander Zobnin
f6e127e55c Chore: modal refactor 2020-05-19 17:31:03 +03:00
Alexander Zobnin
0c2197e4ad Chore: move shared components to components/ 2020-05-19 12:26:04 +03:00
Alexander Zobnin
959cea2061 Problems: improve ack dialog (add ack options), closes #942 2020-05-18 19:41:33 +03:00
Alexander Zobnin
cdb09127fb Problems: navigate to Explore button, #948 2020-05-18 14:13:12 +03:00
Alexander Zobnin
4f9202423b Problems: add ack field to table view, closes #946 2020-05-18 12:59:31 +03:00
Alexander Zobnin
a3f45f1bb8 Problems: show maintenance icon with host name 2020-05-15 19:50:03 +03:00
Alexander Zobnin
a61816dc1c Problems: highlight resolved events with OK color 2020-05-15 19:21:24 +03:00
Alexander Zobnin
056f82731e Problems: use problems.get method for fetching triggers, closes #495 2020-05-15 18:17:54 +03:00
Alexander Zobnin
5015120a50 fix panel crashing if no lastEvent present 2020-05-12 13:46:50 +03:00
Alexander Zobnin
916c570664 Fix severity for resolved problems, closes #909 2020-04-13 15:55:25 +03:00
Alexander Zobnin
dad0fd965d Migrate backendSrv to getBackendSrv, fix direct DB connection 2020-03-20 17:03:49 +03:00
memfiz
94c5059fb1 fix event severity change (#872)
* fixed panel trigger severity if it is changed in event

* fixed panel trigger severity if it is changed in event

* fixed lastEvent check

* removed a comment

* fixed lastEvent check not empty
2020-01-24 16:39:15 +03:00
memfiz
4f24b2bf23 fix not acknowledged problem color with a message (#858)
* fix not acknowledged problem color with a message

* fix not acknowledged problem color with a message, closes #857
2020-01-13 10:58:01 +03:00
Alexander Zobnin
d54d6d29dc problems: fix tag removal (list layout) 2019-12-30 10:36:36 +03:00
Alexander Zobnin
bc889ffe30 Fix problems fetching performance and memory issues (#724)
* request only alert message when invoking alert.get

* fetch problem alerts on demand

* problems panel: refactor
2019-04-22 12:29:05 +03:00
Alexander Zobnin
7e73219b7b problems: fix duplicated page size entries, closes #696 2019-03-05 12:27:13 +03:00
Alexander Zobnin
9cabb58ac1 problems: make timeline optional 2019-02-13 20:21:18 +03:00
Alexander Zobnin
12ccba0187 problems: remove tag filter with Ctrl/Shift+click 2019-02-12 22:28:06 +03:00
Alexander Zobnin
38bf47f832 problems: refactor 2019-02-12 22:28:05 +03:00