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

Add the px-mongo demo to the CLI #1802

Merged
merged 4 commits into from
Mar 11, 2024
Merged

Conversation

kpattaswamy
Copy link
Member

@kpattaswamy kpattaswamy commented Dec 6, 2023

Summary: This PR adds a demo app to test the mongo protocol tracing feature.

Related issues: Closes #640

Type of change: /kind feature

Test Plan: Uploaded the px-mongo demo artifact to the GCS dev bucket. Tested the CLI and then deployed the demo to my cluster. Skaffolded Pixie with the latest mongo tracing changes and used the scratch pad to execute the mongo pxl script to verify data is being collected from the demo.

Screenshot 2023-12-06 at 1 29 39 PM

Changelog Message:

Adds the `px-mongo` demo to the CLI

Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
@kpattaswamy kpattaswamy requested a review from a team December 6, 2023 18:48
demos/manifest.json Outdated Show resolved Hide resolved
@ddelnano
Copy link
Member

ddelnano commented Dec 6, 2023

One minor comment otherwise this lgtm!

Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
@aimichelle aimichelle marked this pull request as ready for review December 13, 2023 18:27
@aimichelle aimichelle requested a review from a team as a code owner December 13, 2023 18:27
demos/README.md Outdated
@@ -90,6 +90,20 @@ file describes the demo scenarios.

6. Replace all occurrences of the k8ssandra-operator namespace. At the time of this writing, the areas to search and replace include the namespace field for a given resource in addition to the cert-manager annotations (cert-manager.io/inject-ca-from). Note: there may be kustomize variables used for the cert-manager.io/inject-ca-from annotation, so ensure all usages reference the px-k8ssandra namespace.

## Updating the `px-mongo` demo

1. Clone `https://github.com/kpattaswamy/mern-k8s`
Copy link
Member

Choose a reason for hiding this comment

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

We probably don't want to link to a personal Github repo. We should probably pull this into one of Pixie's repos.
What sorts of changes are on this fork?

Copy link
Member Author

Choose a reason for hiding this comment

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

The upstream demo app was done by the MongoDB team and relied on the demo's backend interacting with their hosted MongoDB atlas instance.

My fork made changes to that demo to create a local MongoDB instance and let the backend service interact with that instead of MongoDB's hosted one. It also contains the necessary docker compose/kubernetes manifests to run the demo locally and utilizes locust for constant load on the various backend endpoints.

Copy link
Member

@JamesMBartlett JamesMBartlett Jan 11, 2024

Choose a reason for hiding this comment

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

Agree with @aimichelle. We shouldn't linked to personal forks. If we need a fork, it should be under the pixie-io org. Happy to create the fork for you, just send me the info about where its forked from.

Copy link
Member

Choose a reason for hiding this comment

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

Seems like the fork has been created and upstream added a license. Is there anything else to do here?

Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
@ddelnano
Copy link
Member

ddelnano commented Mar 5, 2024

I was able to deploy the px-mongo demo by following the demo README instructions and verified that the http_data and hand written mongodb_data script show the expected data. The only missing piece from my perspective is that the px/monogodb_data script hasn't been release yet.

@aimichelle @JamesMBartlett is there anything else you want to see addressed?

demos/README.md Outdated Show resolved Hide resolved
demos/README.md Outdated
@@ -90,6 +90,20 @@ file describes the demo scenarios.

6. Replace all occurrences of the k8ssandra-operator namespace. At the time of this writing, the areas to search and replace include the namespace field for a given resource in addition to the cert-manager annotations (cert-manager.io/inject-ca-from). Note: there may be kustomize variables used for the cert-manager.io/inject-ca-from annotation, so ensure all usages reference the px-k8ssandra namespace.

## Updating the `px-mongo` demo

1. Clone `https://github.com/kpattaswamy/mern-k8s`
Copy link
Member

Choose a reason for hiding this comment

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

Seems like the fork has been created and upstream added a license. Is there anything else to do here?

demos/manifest.json Outdated Show resolved Hide resolved
Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
@aimichelle aimichelle merged commit cd4d093 into pixie-io:main Mar 11, 2024
20 checks passed
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.

Support for MongoDB query profiling.
5 participants