Commit Graph

72 Commits

Author SHA1 Message Date
Hugo Häggmark
6cc6dcabe1 Chore: removes props mutation (#2056)
While investigating some potential mutations
[here](https://ops.grafana-ops.net/d/83f4951f-2ef3-4260-91a0-39a031992b75/getmutationobserverproxy-logs)
I was able to find these mutating
[lines](https://github.com/grafana/grafana-zabbix/blob/main/src/datasource/components/ConfigEditor.tsx#L55-L57)

Although this works right now, this might not work in future Grafana
versions. This PR makes sure we don't mutate the props.

I haven't been able to test this manually so I could use some help to
make sure the plugin works as expected.

---------

Co-authored-by: ivanahuckova <ivana.huckova@gmail.com>
2025-07-18 12:14:27 +02:00
Zoltán Bedi
bb6ade69c8 Fix: Update Zabbix API connector to handle versioning for 'with_hosts' parameter (#2049)
This changes the version number for `with_hosts` to return `real_hosts`
when version is 6.0.0 or below.

In 6.2 `real_hosts` is deprecated.
https://www.zabbix.com/documentation/6.2/en/manual/api/reference/hostgroup/get

In 6.0 it isn't.
https://www.zabbix.com/documentation/6.0/en/manual/api/reference/hostgroup/get

Fixes https://github.com/grafana/grafana-zabbix/issues/2048
2025-07-10 17:28:04 +02: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
Sriram
8051b1408c [Bug fix] handle multiple service status (#2037)
Fixes https://github.com/grafana/grafana-zabbix/issues/2036

## Before fix

<img width="1393" alt="image"
src="https://github.com/user-attachments/assets/e698a571-9e4b-4fbb-824e-7d7dc1b77137"
/>

## After fix

<img width="1397" alt="image"
src="https://github.com/user-attachments/assets/99882c1e-926a-4667-86cb-8b0f3468dac7"
/>
2025-06-18 10:30:05 +01:00
Zoltán Bedi
301326084a Fix: Variable item not filtering for item tag (#2006)
Fixes #1930
Fixes #1543 
Fixes #1329 

TODO

- [x] Add test
2025-05-09 20:08:44 +00:00
Zoltán Bedi
8136184a54 Fix: d.for.Each is not a function errors (#2005)
Fixes #2002
2025-05-05 13:58:42 +02:00
Zoltán Bedi
8d06e049fb Enhance error handling in health check (#1998) 2025-03-25 12:12:40 +01:00
Zoltán Bedi
6034153046 Fix: host groups not showing in problems panel (#1965)
This PR fixes 2 issues mentioned below.
Fixes #1943
Fixes #1946

## Problems Panel not showing host groups:


[src/panel-triggers/components/Problems/Problems.tsx](0355f40fc2/src/panel-triggers/components/Problems/Problems.tsx)

![Image](https://github.com/user-attachments/assets/2d5d8207-dcd6-4e80-aef3-a9eadf4d3dc9)

### How to reproduce

1. Go to `Zabbix data source features` dashboard
2. Open Problems panel
3. In the panel config enable host groups field
4. Host groups should show up in the table

## Triggers not showing


![Image](https://github.com/user-attachments/assets/4319ebc1-bbdb-4648-b7d5-269e82351804)

### How to reproduce

1. Go to explore and select the zabbix ds
2. Select `Triggers` Query type
3. Add `Backend` as a group
4. Add `/.*/` as host
5. There should be 2 average triggers
2025-02-24 17:54:34 +01:00
yesoreyeram
374c83d17d initial fix 2025-01-03 09:18:37 +00:00
Ivana Huckova
dbcc008489 Fix querying and authentication for Zabbix v7.0+ (#1931)
* Fix querying for Zabbix v7.2+

* Update check from 7.2 to 7.0

* Fix also select acknowledges key

* Remove unsused methods

* release commit 4.6.0

---------

Co-authored-by: yesoreyeram <153843+yesoreyeram@users.noreply.github.com>
2024-12-17 01:02:43 +00:00
Ivana Huckova
3fa881d32b Merge pull request #1922 from grafana/ivana/deprecate-experimental
Replace `@grafana/experimental` with `@grafana/plugin-ui`
2024-11-28 14:38:39 +01:00
Sriram
e3c3c11e41 host id as alias function (#1913) 2024-11-27 10:32:48 +00:00
Ivana Huckova
fa7fca74a4 Replace @grafana/experimental with @grafana/plugin-ui 2024-11-26 16:53:15 +01:00
Sriram
2c41cea0c4 fixed a bug where mixed datasource with variable ref were not working (#1909) 2024-11-12 09:48:23 +00:00
Sriram
b27194930c fixed a bug where multiple SLA queries not handled correctly (#1910)
* fixed a bug where multiple SLA queries not handled correctly

* added test
2024-11-12 09:38:27 +00:00
Zoltán Bedi
a3adaaf25e Migrate example dashboards to more recent version 2024-10-17 11:30:11 +02:00
Zoltán Bedi
09e12a0626 Fix: Problems panel failing for versions before 7.0.0 (#1840)
* Fix: Problems panel failing for versions before 7.0.0

* Add tests

* Use spy instead of new argument
2024-06-18 08:55:17 +01:00
Zoltán Bedi
7b97265ba4 Update src/datasource/plugin.json
Co-authored-by: Will Browne <wbrowne@users.noreply.github.com>
2024-06-13 15:37:18 +02:00
Will Browne
712a3e6581 remove relative path info from executable field 2024-06-12 14:50:57 +01:00
Zoltán Bedi
aecdb4bbee Add support for v7 (#1835)
* Add support for v7

* Bump version
2024-06-10 14:53:15 +02:00
Sriram
3ebc05d242 fixes for scenes framework (#1822)
* removed scenes object from caching hash

* update backend deps
2024-04-29 11:45:10 +01:00
Sriram
c4065fb0f3 config updates (#1800)
* cleanup

* update create plugin config and query help fix

* query types file

* Update docker-compose.yml

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>

* addressed review comments

---------

Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2024-03-13 15:20:53 +00:00
Zoltán Bedi
a5fbbda757 Fix: API token reset not working (#1797) 2024-03-06 14:36:08 +01:00
Sriram
a7c2672020 Merge pull request #1763 from grafana/docs-website-update
Docs website update
2024-01-10 13:27:46 +00:00
Gábor Farkas
541ba8cd82 handle changed postgres-plugin-id 2024-01-08 15:47:41 +01:00
Sriramajeyam Sugumaran
ef24d1fcb4 setup docs hirearchy 2023-12-20 11:32:04 +00:00
Sriramajeyam Sugumaran
94c5afc5d4 moved documentation 2023-12-20 07:10:48 +00:00
Gareth Dawson
3654866fc4 Merge pull request #1743 from grafana/gareth/legacy-forms
legacy form migration
2023-11-20 10:07:39 +00:00
Gareth Dawson
6b52a475e3 fix 2023-11-17 11:38:51 +00:00
Gareth Dawson
c9f515686c legacy form migration 2023-11-14 15:41:36 +00:00
Gareth Dawson
17d71f6d9e Merge pull request #1725 from grafana/gareth/config-page-update
Update config page to follow best practices
2023-11-08 14:32:08 +00:00
Zoltán Bedi
dd50ff4fe1 Fix: Move dashboards under datasource (#1727) 2023-11-07 13:29:47 +01:00
Gareth Dawson
d0b1a76582 Update src/datasource/components/ConfigEditor.tsx
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
2023-11-01 09:54:54 +00:00
Gareth Dawson
801e53d77e update config page 2023-10-25 14:42:47 +01:00
Zoltán Bedi
43f2c6653b Chore: Fix prettier issues in test files (#1710)
* Chore: Fix prettier issues in test files

* Escape w and d properly
2023-10-13 15:20:31 +02:00
Gareth Dawson
9399a6b39b dont track requests on dashboard reload 2023-10-10 10:01:12 +01:00
Kris Avi
43c0fc9389 Doc: Fix broken link in query editor and doc (#1701)
* Update query_help.md

* Update FunctionEditorControls.tsx
2023-10-04 14:35:03 +02:00
Gareth Dawson
209fea489f Merge pull request #1688 from grafana/gareth/add-feature-tracking
track executed queries and panel clicks
2023-09-28 13:41:50 +01:00
Gareth Dawson
5143dd2272 mock reportInteraction 2023-09-28 10:24:45 +01:00
Gareth Dawson
ac91cb4320 only report basic usage 2023-09-28 10:04:07 +01:00
Zoltán Bedi
fdca810285 Chore: Dependency clean up 2023-09-24 22:59:27 +02:00
Gareth Dawson
fd616b6446 track executed queries and panel clicks 2023-09-13 12:30:58 +01:00
Alexander Zobnin
e45277c7bf Fix evaltype for problems history 2023-08-01 17:44:43 +02:00
Alexander Zobnin
4373ef8667 Add tags filter to triggers query 2023-08-01 17:41:25 +02:00
Alexander Zobnin
4534679e65 Hide application filter for queries that do not support it, fixes #1643 2023-08-01 17:26:45 +02:00
Alexander Zobnin
7af3dca545 Problems: Able to select tags evaluation type, fixes #1600 2023-08-01 15:53:13 +02:00
Alexander Zobnin
873947ca2e SLA: support multiple SLA in one query, fixes #1603 2023-08-01 15:04:35 +02:00
Alexander Zobnin
ac976945a5 Auth: Able to use API tokens for authentication (#1662)
* Auth: Able to use API tokens for authentication

* Update change log
2023-07-26 17:23:44 +02:00
lean.dev
8205f7aaf8 Support for secure socks proxy (#1650)
* Enables PDC for zabbix datasource

* 4.4.0

* Updating CHANGELOG

* Updating CHANGELOG

* Updating CHANGELOG
2023-07-25 18:54:48 +03:00
Alexander Zobnin
445f3fa173 Fix count by options in triggers query 2023-07-21 12:27:40 +02:00