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>
This commit is contained in:
Sriram
2024-03-13 15:20:53 +00:00
committed by GitHub
parent ee75ae8abb
commit c4065fb0f3
44 changed files with 659 additions and 449 deletions

View File

@@ -4,7 +4,8 @@ import { DataSourceRef, dateMath, PanelProps } from '@grafana/data';
import { getDataSourceSrv } from '@grafana/runtime';
import { contextSrv } from 'grafana/app/core/core';
import { ProblemsPanelOptions, RTResized } from './types';
import { ProblemDTO, ZabbixMetricsQuery, ZBXQueryUpdatedEvent, ZBXTag } from '../datasource/types';
import { ZabbixMetricsQuery } from '../datasource/types/query';
import { ProblemDTO, ZBXQueryUpdatedEvent, ZBXTag } from '../datasource/types';
import { APIExecuteScriptResponse } from '../datasource/zabbix/connectors/zabbix_api/types';
import ProblemList from './components/Problems/Problems';
import { AckProblemData } from './components/AckModal';

View File

@@ -2,8 +2,7 @@ import React from 'react';
import { Button } from '@grafana/ui';
import { StandardEditorProps } from '@grafana/data';
type Props = StandardEditorProps<any>;
export const ResetColumnsEditor = ({ onChange }: Props): JSX.Element => {
export const ResetColumnsEditor = ({ onChange }: StandardEditorProps<any>) => {
return (
<Button variant="secondary" onClick={() => onChange([])}>
Reset columns

View File

@@ -1,6 +1,6 @@
import _ from 'lodash';
import { getNextRefIdChar } from './utils';
import { ShowProblemTypes } from '../datasource/types';
import { ShowProblemTypes } from '../datasource/types/query';
import { ProblemsPanelOptions } from './types';
import { PanelModel } from '@grafana/data';

View File

@@ -2,11 +2,10 @@
"type": "panel",
"name": "Zabbix Problems",
"id": "alexanderzobnin-zabbix-triggers-panel",
"info": {
"author": {
"name": "Alexander Zobnin",
"url": "https://github.com/alexanderzobnin/grafana-zabbix"
"name": "Grafana Labs",
"url": "https://grafana.com"
},
"logos": {
"small": "img/icn-zabbix-problems-panel.svg",

View File

@@ -1,5 +1,6 @@
import _ from 'lodash';
import { DataQuery, dateMath } from '@grafana/data';
import { dateMath } from '@grafana/data';
import { DataQuery } from '@grafana/schema';
import * as utils from '../datasource/utils';
import { ProblemDTO } from 'datasource/types';