Commit 1bbf8486 authored by Zain Asgar's avatar Zain Asgar
Browse files

Add Apache2 header to PXL scripts under px

Summary: Required as part of Apache2 license.

Test Plan: N/A

Reviewers: michelle, philkuz, nserrino, #engineering

Reviewed By: philkuz, #engineering

Differential Revision: https://phab.corp.pixielabs.ai/D6088

GitOrigin-RevId: e1a89b2bd5a76fdf747971603baec1e1c326a5ee
parent dac67304
Showing with 60 additions and 0 deletions
+60 -0
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
px.display(px.GetAgentStatus())
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' Cluster Overview
This view lists the namespaces and the nodes that are available on the current cluster.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
t1 = px.DataFrame(table='cql_events', start_time='-30s')
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' CQL Pod LET metrics
This live view calculates the latency, error rate, and throughput
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
# Regular functions.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' HTTP Data Tracer
This script traces all HTTP/HTTP2 data on the cluster for a specified amount of time.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
t1 = px.DataFrame(table='http_events', start_time='-30s')
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
bytes_per_mb = 1024 * 1024
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' jvm per Pod and filtered by Node.
This live view summarizes the CPU percentage and network bytes
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
###############################################################
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
###############################################################
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
t1 = px.DataFrame(table='mysql_events', select=['time_', 'remote_addr', 'remote_port',
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' MySQL Pod LET metrics
This live view calculates the latency, error rate, and throughput
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' Namespace Overview
This view gives a top-level summary of the pods and services in a given namespace,
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' Namespaces Overview
This view lists the namespaces on the current cluster and their pod and service counts.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
t1 = px.DataFrame(table='network_stats', select=['time_', 'pod_id', 'rx_bytes',
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' Node Overview
This view summarizes the process and network stats for a given input node in a cluster.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
''' Nodes Overview
This view summarizes the process and network stats for each node in a cluster.
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
#
......
# Copyright (c) Pixie Labs, Inc.
# Licensed under the Apache License, Version 2.0 (the "License")
import px
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment