Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend: implement alerting query(Part 1) #819

Closed
wants to merge 3 commits into from

Conversation

vignesh-reddy
Copy link
Contributor

Issue #801

Implemented part of the alerting query issue to get data from Zabbix and parse the query by fetching groups, hosts, apps, and items.

Initially parsed the query to get the filters for groups, hosts, apps, and items and later fetched the data from the Zabbix data source for all groups, hosts, apps, and items and filtered those bypassing them into regex filter.

@vignesh-reddy vignesh-reddy changed the title Added queryNumericItems method Backend: implement alerting query() Oct 11, 2019
@vignesh-reddy vignesh-reddy changed the title Backend: implement alerting query() Backend: implement alerting query(Part 1) Oct 11, 2019
return groups, nil
}

func (ds *ZabbixDatasource) getAllItems(ctx context.Context, dsInfo *datasource.DatasourceInfo, hostids []string, appids []string, itemtype string) (*simplejson.Json, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is "getAllItems" a good name for this? It's not really getting all items, usually it's filtered by hostids.

@vignesh-reddy
Copy link
Contributor Author

Any estimate on reviewing the backend PRs?

@vignesh-reddy
Copy link
Contributor Author

vignesh-reddy commented Dec 20, 2019

Closing this PR, will open a new one with an initial alerting feature in a working state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants