Skip to content

chuck-bear/kurtosis-pyroscope-package

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Pyroscope Package

This is a Kurtosis package for profiling your services with Pyroscope.

Run this package

If you have Kurtosis installed, run:

kurtosis run github.com/chuck-bear/kurtosis-pyroscope-package

If you don't have Kurtosis installed, click here to run this package on the Kurtosis playground.

To blow away the created enclave, run kurtosis clean -a.

The arguments can then be passed in to kurtosis run.

For example:

kurtosis run github.com/chuck-bear/kurtosis-pyroscope-package

You can also store the JSON args in a file, and use command expansion to slot them in:

kurtosis run github.com/chuck-bear/kurtosis-pyroscope-package "$(cat args.json)"

Use this package in your package

Kurtosis packages can be composed inside other Kurtosis packages. To use this package in your package:

First, import this package by adding the following to the top of your Starlark file:

# For remote packages: 
pyroscope = import_module("github.com/chuck-bear/kurtosis-pyroscope-package/main.star") 

# For local packages:
this_package = import_module(".src/main.star")

If you want to use a fork or specific version of this package in your own package, you can replace the dependencies in your kurtosis.yml file using the replace primitive. Within your kurtosis.yml file:

name: github.com/example-org/example-repo
replace:
    github.com/chuck-bear/kurtosis-pyroscope-package: github.com/YOURUSER/THISREPO@YOURBRANCH

Then, call the this package's run function somewhere in your Starlark script:

this_package_output = this_package.run(plan, args)

Develop on this package

  1. Install Kurtosis
  2. Clone this repo
  3. For your dev loop, run kurtosis clean -a && kurtosis run . inside the repo directory

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published