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

Update Grafana Panel Plugins #118

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Conversation

heanlan
Copy link
Contributor

@heanlan heanlan commented Sep 27, 2022

This PR does the following two things:

When testing with snowflake datasource plugin, we found it will
automatically convert all fields name to upper case, which will
lead to string matching failure in our sankey-panel plugin and
chord-panel plugin, as we are doing case sensitive string matching.
As a work around, we do the following change to both sankey and
chord plugins: when search for fields with names in data frame,
do case insenstive string matching.

When testing with snowflake datasource plugin, we found for a field
with type String, when the value is Null, it will not convert a
Null to ''. So we change our chord panel plugin to also check for
Null value, to be compatible with different datasources.

Signed-off-by: heanlan hanlan@vmware.com

Copy link
Contributor

@yuntanghsu yuntanghsu left a comment

Choose a reason for hiding this comment

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

LGTM

@heanlan
Copy link
Contributor Author

heanlan commented Sep 27, 2022

/theia-test-e2e

This PR does the following two things:

When testing with snowflake datasource plugin, we found it will
automatically convert all fields name to upper case, which will
lead to string matching failure in our sankey-panel plugin and
chord-panel plugin, as we are doing case sensitive string matching.
As a work around, we do the following change to both sankey and
chord plugins: when search for fields with names in data frame,
do case insenstive string matching.

When testing with snowflake datasource plugin, we found for a field
with type String, when the value is Null, it will not convert a
Null to ''. So we change our chord panel plugin to also check for
Null value, to be compatible with different datasources.

Signed-off-by: heanlan <hanlan@vmware.com>
@heanlan heanlan changed the title Update Grafana Chord Panel Plugin Update Grafana Panel Plugins Sep 28, 2022
@heanlan
Copy link
Contributor Author

heanlan commented Sep 28, 2022

@dreamtalen @yuntanghsu thanks for the quick review.

I just merged my other changes of plugins in #117 into this PR. I previously came up with a "workaround" on Grafana dashboard, with which I thought the changes are no longer needed, so I closed that PR. Just found the workaround still not work, so I added the changes back. Please help take another look when you have time. Still a small PR.

heanlan added a commit to heanlan/theia-1 that referenced this pull request Sep 28, 2022
This PR adds 4 Grafana dashboards with snowflake as the datasource:
Home Dashboard, Flow Records Dashboard, Pod-to-Pod Flows Dashboard,
and Network-Policy Flows Dashboard. These dashboards are basically
the same with ClickHouse dashboards in their contents, differ in
the query syntax. Currently, the snowflake dashboards are without
the ad-hoc filters, as the datasource plugin does not offer the
the support. We can revisit it later if we decide to work with
Grafana in the long-term.

In the deployment instruction, we suggest users deploy Grafana
with docker, so they do not need to install Grafana locally,
and it makes the custom plugins installation simple.

This PR should be merged after antrea-io#112 and antrea-io#118. The documentation
shall also be merged into the README.md introduced in antrea-io#112

Signed-off-by: heanlan <hanlan@vmware.com>
Copy link
Contributor

@ziyouw ziyouw left a comment

Choose a reason for hiding this comment

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

LGTM

@salv-orlando salv-orlando added this to the Theia v0.3 Release milestone Sep 28, 2022
@heanlan heanlan merged commit 3c80906 into antrea-io:main Sep 29, 2022
@heanlan heanlan deleted the update-chord-plugin branch September 29, 2022 18:31
heanlan added a commit to heanlan/theia-1 that referenced this pull request Oct 5, 2022
This PR adds 4 Grafana dashboards with snowflake as the datasource:
Home Dashboard, Flow Records Dashboard, Pod-to-Pod Flows Dashboard,
and Network-Policy Flows Dashboard. These dashboards are basically
the same with ClickHouse dashboards in their contents, differ in
the query syntax. Currently, the snowflake dashboards are without
the ad-hoc filters, as the datasource plugin does not offer the
the support. We can revisit it later if we decide to work with
Grafana in the long-term.

In the deployment instruction, we suggest users deploy Grafana
with docker, so they do not need to install Grafana locally,
and it makes the custom plugins installation simple.

This PR should be merged after antrea-io#112 and antrea-io#118. The documentation
shall also be merged into the README.md introduced in antrea-io#112

Signed-off-by: heanlan <hanlan@vmware.com>
heanlan added a commit to heanlan/theia-1 that referenced this pull request Oct 10, 2022
This PR adds 4 Grafana dashboards with snowflake as the datasource:
Home Dashboard, Flow Records Dashboard, Pod-to-Pod Flows Dashboard,
and Network-Policy Flows Dashboard. These dashboards are basically
the same with ClickHouse dashboards in their contents, differ in
the query syntax. Currently, the snowflake dashboards are without
the ad-hoc filters, as the datasource plugin does not offer the
the support. We can revisit it later if we decide to work with
Grafana in the long-term.

In the deployment instruction, we suggest users deploy Grafana
with docker, so they do not need to install Grafana locally,
and it makes the custom plugins installation simple.

This PR should be merged after antrea-io#112 and antrea-io#118. The documentation
shall also be merged into the README.md introduced in antrea-io#112

Signed-off-by: heanlan <hanlan@vmware.com>
heanlan added a commit that referenced this pull request Oct 11, 2022
This PR adds 4 Grafana dashboards with snowflake as the datasource:
Home Dashboard, Flow Records Dashboard, Pod-to-Pod Flows Dashboard,
and Network-Policy Flows Dashboard. These dashboards are basically
the same with ClickHouse dashboards in their contents, differ in
the query syntax. Currently, the snowflake dashboards are without
the ad-hoc filters, as the datasource plugin does not offer the
the support. We can revisit it later if we decide to work with
Grafana in the long-term.

In the deployment instruction, we suggest users deploy Grafana
with docker, so they do not need to install Grafana locally,
and it makes the custom plugins installation simple.

This PR should be merged after #112 and #118. The documentation
shall also be merged into the README.md introduced in #112

Signed-off-by: heanlan <hanlan@vmware.com>
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.

6 participants