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

Revise README, Getting Started, and flow visibility documents #45

Merged
merged 1 commit into from
Jun 15, 2022

Conversation

jianjuns
Copy link
Contributor

@jianjuns jianjuns commented Jun 12, 2022

Add Theia overview, getting-started, contributing, community, and
license information to README.md.
Move Getting Started to a separate document, and add more information
about Theia features and usage.
section.
Rename theia.md to theia-cli.md.

Signed-off-by: Jianjun Shen shenj@vmware.com

@jianjuns jianjuns added the documentation Improvements or additions to documentation label Jun 12, 2022
During the code migration period, we will still keep related functions available
and stable in the Antrea repo, and the functions in this new repo won't be ready
until we announce the migration is completed.
Theia is a network observability and analytics platform for Kubernetes. It is
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@salv-orlando : I believe you can write a better version. But could we start from the simple introduction?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to keep the readme simple, I think your intro is great.

I would just replace
"provide fine-grained visibility into the network communications in a Kubernetes cluster"

with

"provide fine-grained visibility into connections across pod and services in a Kubernetes cluster"

Unless you chose "network communications" for a specific reason

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about "provide fine-grained visibility into communications among Pods and Services in a Kubernetes cluster"? I feel people might think connections as TCP connections.

Choose a reason for hiding this comment

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

just propose "visibility on workload among Pods, Service and external network" as alternative.

@jianjuns jianjuns force-pushed the theia-doc branch 4 times, most recently from 046db81 to c0421c6 Compare June 12, 2022 17:57
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.

Hi Jianjun,

Thanks for updating the docs! LGTM, I am just not sure about a few small parts.

Getting started with Theia is simple. You can follow the [Getting Started](docs/network-flow-visibility.md#getting-started)
guide to install Theia and start rocking!

Theia supports network flow visualization and monitoring with Grafana. Check the
Copy link
Contributor

Choose a reason for hiding this comment

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

Right now, Theia only supports flow visibility and NP recommendation for a single cluster. Maybe we should highlight this before we can support more?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel no need to mention not implemented features in README (e.g. we can have a ROADMAP doc for that if we want). There are other K8s visibility solutions support a single cluster only too. Do not think multi-cluster support is a must.

Copy link
Contributor

Choose a reason for hiding this comment

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

I would not include "forward-looking" statements in the README files.
As @jianjuns mentioned, we can have them either in the roadmap doc, or maybe simply track them on Github!

configuration of Kubernetes resources such as Network Policy, Services, Pods
etc., and thereby provides opportunities to enhance the performance and security
aspects of Pod workloads.
Theia is a network observability and analytics platform for Kubernetes, that is
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if "which is" is better than "that is" or we can split it as two simple sentences.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Let me think about how to rephrase.

Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

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

Thanks Jianjun for taking care of the doc.

In docs/network-flow-visibility.md L658, "the dashboards customization section for more", the link needs to be changed to #dashboard-customization

@jianjuns
Copy link
Contributor Author

In docs/network-flow-visibility.md L658, "the dashboards customization section for more", the link needs to be changed to #dashboard-customization

Thanks! Fixed.

The Antrea community welcomes new contributors. We are waiting for your PRs!

* Before contributing, please get familiar with our
[Code of Conduct](CODE_OF_CONDUCT.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

Took a look at the workflow failure, it seems the CODE_OF_CONDUCT.md is not added? Or shall we pointing to the file in Antrea repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be added in #40

Copy link

@dreamtalen dreamtalen left a comment

Choose a reason for hiding this comment

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

Thanks Jianjun working on this.

@@ -1,4 +1,4 @@
# Theia: Network Flow Visibility for Antrea
# Theia - Network Observability and Analytics for Antrea

Choose a reason for hiding this comment

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

Do we also need to change the title of this markdown file accordingly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, what title you mean?

Choose a reason for hiding this comment

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

Oops, I was about to say is the 'filename' of this .md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah. I was thinking about a new name too, but failed to come up with a good one. Let me know if you have an idea.

Choose a reason for hiding this comment

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

Naming things is truly hard, I have some ideas for your reference:
observing-flows-with-theia.md
observing-and-analyzing-network-flows-with-theia.md
network-flow-observability-and-analytics.md

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, probably let us see if others have some ideas too and decide later. I feel the file name should not be too long.

Copy link
Contributor

Choose a reason for hiding this comment

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

Got inspired by Antrea doc directory arch. A wild idea came to me:

Can we split the "Grafana Flow Collector" whole section out to a separate file? parallel to networkpolicy-recommendation.md. So that for the current network-flow-visibility.md will only contains:

Overview
Getting Started
Prerequisites
Theia Installation
Features

Additional Information

And we can name it by overview.md/getting-started.md etc, a shorter name. But it may requires a bigger change, not sure if we want to make it before this release.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@heanlan Yes, it makes sense to me. Originally I hoped to avoid bigger changes to catch v0.1.0. But sure, let me try revising as you suggested.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Made an update. Check.

README.md Show resolved Hide resolved
docs/network-flow-visibility.md Show resolved Hide resolved
Copy link
Contributor

@yanjunz97 yanjunz97 left a comment

Choose a reason for hiding this comment

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

Thanks Jianjun for working on this!

@@ -64,7 +66,7 @@ manifest, in the following way:

### Theia Installation

To enable both Grafana Flow Collector and
To enable both [Grafana Flow Collector](#grafana-flow-collector) and
[NetworkPolicy Recommendation](networkpolicy-recommendation.md), please install
Theia and Flow Aggregator by runnning the following commands:
Copy link
Contributor

Choose a reason for hiding this comment

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

Not introduced by this PR, could you change the order "Theia and Flow Aggregator" to "Flow Aggregator and Theia". I forgot to change it when changing the installation order. And the same for Line 77. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Changed.

### Additional information
### Grafana Dashboard Access

After the installation, you can run the following command to get the Grafana
Copy link
Contributor

Choose a reason for hiding this comment

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

command -> commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

Comment on lines 41 to 42
on top of [Antrea](https://github.com/antrea-io/antrea). Theia consumes [network
[flows exported by Antrea](https://github.com/antrea-io/antrea/blob/main/docs/network-flow-visibility.md)
Copy link
Contributor

Choose a reason for hiding this comment

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

[network [flows exported by Antrea] -> [network flows exported by Antrea]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@@ -112,6 +61,11 @@ ClickHouse as the data storage, and use Grafana as the data visualization and mo

### Deployment Steps

This section talks about detailed steps to deploy the Grafana Flow Collector
using Helm charts or YAML manifests. For quick steps of installing Theia
including the Grafana Flow Collector, please refer to the [Getting Started](getting-started.md)
Copy link

@dreamtalen dreamtalen Jun 13, 2022

Choose a reason for hiding this comment

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

Getting Started link needs to be updated in networkpolicy-recommendation.md L29 too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated it.

@jianjuns jianjuns force-pushed the theia-doc branch 2 times, most recently from 7301d74 to ce983d4 Compare June 13, 2022 20:52
Copy link
Contributor

@heanlan heanlan left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -23,72 +19,25 @@
- [Service Customization](#service-customization-1)
- [Performance Configuration](#performance-configuration)
- [Persistent Volumes](#persistent-volumes)
Copy link
Contributor

Choose a reason for hiding this comment

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

Again not introduced by this PR, could you help put Persistent Volumes section under ClickHouse Configuration instead of parallel to it, as this section is about creating Persistent Volumes for ClickHouse. Thanks a lot!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@jianjuns jianjuns force-pushed the theia-doc branch 2 times, most recently from 56a770c to e3ee3de Compare June 13, 2022 21:58
@jianjuns jianjuns changed the title Revise README and user documents Revise README, Getting Started, and flow visibility documents Jun 13, 2022
@jianjuns jianjuns added this to the 0.1 milestone Jun 14, 2022
Getting started with Theia is simple. You can follow the [Getting Started](docs/network-flow-visibility.md#getting-started)
guide to install Theia and start rocking!

Theia supports network flow visualization and monitoring with Grafana. Check the
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not include "forward-looking" statements in the README files.
As @jianjuns mentioned, we can have them either in the roadmap doc, or maybe simply track them on Github!

During the code migration period, we will still keep related functions available
and stable in the Antrea repo, and the functions in this new repo won't be ready
until we announce the migration is completed.
Theia is a network observability and analytics platform for Kubernetes. It is
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to keep the readme simple, I think your intro is great.

I would just replace
"provide fine-grained visibility into the network communications in a Kubernetes cluster"

with

"provide fine-grained visibility into connections across pod and services in a Kubernetes cluster"

Unless you chose "network communications" for a specific reason

* Check out the Antrea [Contributor Guide](CONTRIBUTING.md) for information
about setting up your development environment and our contribution workflow.
* Learn about Antrea's [Architecture and Design](https://github.com/antrea-io/antrea/blob/main/docs/design/architecture.md).
Your feedback is more than welcome!
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not about this PR, but we also need an arch doc for Theia to integrate Antrea's one.

README.md Outdated

## License

Antrea is licensed under the [Apache License, version 2.0](LICENSE)
Copy link
Contributor

Choose a reason for hiding this comment

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

Mabe we should mention Theia here rather than Antrea - this is because the README refers to the specific repo, not the whole org.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I missed it.


## Overview

Theia is a network observability and analytics platform for Kubernetes, bulit
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: s/bulit/built

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

Add Theia overview, getting-started, contributing, community, and
license information to README.md.
Move Getting Started to a separate document, and add more information
about Theia features and usage.
section.
Rename theia.md to theia-cli.md.

Signed-off-by: Jianjun Shen <shenj@vmware.com>
Copy link
Contributor

@salv-orlando salv-orlando left a comment

Choose a reason for hiding this comment

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

LGMT!

@jianjuns jianjuns merged commit 3b9cec4 into main Jun 15, 2022
@jianjuns jianjuns deleted the theia-doc branch June 15, 2022 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants