Skip to content

Update PxL script tutorial to account for metric_counter type columns.#207

Merged
htroisi merged 2 commits intomainfrom
pxl-script-tutorial
Jun 24, 2022
Merged

Update PxL script tutorial to account for metric_counter type columns.#207
htroisi merged 2 commits intomainfrom
pxl-script-tutorial

Conversation

@htroisi
Copy link
Copy Markdown
Contributor

@htroisi htroisi commented Jun 23, 2022

This PxL script tutorial shows how to calculate bytes_sent and bytes_recv per pod. The existing PxL script failed to account for the fact that the conn_stats bytes columns are of type METRIC_COUNTER. This update calculates the min / max bytes values and subtracts the two to provide values scoped to the time window. This demo PxL script is now consistent with the logic in px/outbound_conns.

Signed-off-by: Hannah Troisi htroisi@pixielabs.ai

Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 23, 2022

Deploy Preview for docs-px-dev ready!

Name Link
🔨 Latest commit 5719721
🔍 Latest deploy log https://app.netlify.com/sites/docs-px-dev/deploys/62b4d6c7beac4e0008bfeab3
😎 Deploy Preview https://deploy-preview-207--docs-px-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@htroisi htroisi requested a review from philkuz June 23, 2022 21:05
Signed-off-by: Hannah Troisi <htroisi@pixielabs.ai>
@htroisi htroisi requested a review from vihangm June 24, 2022 00:58
@htroisi htroisi merged commit 9b831d0 into main Jun 24, 2022
@htroisi htroisi deleted the pxl-script-tutorial branch June 24, 2022 01:01
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.

3 participants