-
Notifications
You must be signed in to change notification settings - Fork 25
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/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>
7b37b59
to
bc4d50c
Compare
@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. |
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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>
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>
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>
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