-
Notifications
You must be signed in to change notification settings - Fork 370
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
[Flow Visibility] Add Grafana and Clickhouse deployment file #3063
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3063 +/- ##
==========================================
- Coverage 60.85% 54.57% -6.28%
==========================================
Files 266 373 +107
Lines 26520 51224 +24704
==========================================
+ Hits 16139 27956 +11817
- Misses 8591 20862 +12271
- Partials 1790 2406 +616
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hi @antoninbas and @tnqn , this PR is still in progress, but I have a quick question about how/where to serve Grafana custom plugin (currently in |
@zyiou could you put the plugin code under |
34c8ab6
to
98a716c
Compare
4808cff
to
3cbdb3d
Compare
68d89f8
to
403a5c0
Compare
545112f
to
ed3efe4
Compare
b85c6a2
to
39c056b
Compare
I have another question: once we have the all the flow-visibility refactoring PRs merged, do we still want to keep the ELK related contents in the repo? shall we open another PR to remove all of them for v1.6 release? or postpone it to v1.7? |
Thanks, Salvatore. cc @jianjuns @antoninbas for opinions. Thanks! |
I think we could keep ELK related stuff in v1.6 release. In order to fully move to our new flow visibility arch, we also need some changes on Flow Aggregator side (deleting unused fields in new arch, debugging cqe test, etc), which may take a while before finished. |
I feel it depends on how complete the new implementation is (which you guys know better). If it is not that complete, probably let us still keep ELK support for a while. For naming, another way is to name it something you guys like, not necessary description of the functionalities. |
Another alternative I can think of is "Grafana Flow Collector".
I'll go-ahead and do the refactoring if that sounds good to all of us. |
Hi @antoninbas @jianjuns , would you mind having a look at this PR again? |
This change groups files brought from: [Flow Visibility] Add Grafana and Clickhouse deployment file antrea-io#3063 Additional modifications are added and to be resolved when ^ PR is merged.
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.
I do not have further comments on the PR, but we need a reviewer with enough knowledge to approve.
This change groups files brought from: [Flow Visibility] Add Grafana and Clickhouse deployment file antrea-io#3063 Additional modifications are added and to be resolved when ^ PR is merged.
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.
Overall LGTM. Would be good if someone else beyond the person working on this PR could validate the installation instructions by trying them out.
build/yamls/flow-visibility/base/provisioning/datasources/create_table.sh
Outdated
Show resolved
Hide resolved
ClickHouse as the data storage, and use Grafana as the data visualization and monitoring tool. | ||
|
||
#### Deployment Steps | ||
|
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.
Should we encourage users to edit the clickhouse-secret
Secret
and use non-default credentials? I think that may be a good idea.
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.
Thanks, I added a credential configuration section in the latest commit for review, where I also added the Grafana login credentials configuration. There's one issue: flow-aggregator.yml also has a Secret with the same contents as clickhouse-secret
. Their namespaces are different, so they cannot share the same Secret. Users need to make the changes at two different locations.
I feel it can be addressed if we later decide to merge flow-aggregator
and flow-visibility
namespaces into one. But at the current stage, I'm not sure whether we want to add this customization support. Do you have any opinions on that?
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.
that sounds fine for now. I want us to support Helm as an installation method later one, and I believe it will make it easier to keep everything consistent.
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.
We may need to mention Grafana flow collector in this paragraph
Thanks @yanjunz97 , could you please also help to try out the instructions of deployment? |
1. Add Grafana dashboards 2. Change deployment files arrangements and manifest generation and maintenance 3. Add documentation for flow-visibility solution Signed-off-by: heanlan <[email protected]>
I have worked on the validation. I found an error in Grafana dashboard when trying to set a customized username and password for Clickhouse. After some discussions and troubleshooting with @heanlan , we found the root cause. Anlan has updated the files to fix it. After this fix, I tried out all the installation instructions again and validated that they all work as expected. |
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
/test-all |
@heanlan can I go ahead and merge this PR? |
Yes, please @antoninbas |
This PR is for adding deployment file and custom plugin for Grafana configuration and setup for Clickhouse, which are the UI solution and database solution for flow visibility long term architecture.
Deployment file:
It adds deployment for Clickhouse and Grafana with provisioning datasource and dashboards configuration.
Grafana sankey plugin:
A panel plugin is initialized from Grafana plugin template with Sankey diagram using react-google-chart.