Generating Kubernetes service maps, no trace required.
๐ Lightstep Notebook Example
- k8s cluster connected to kubectl
- running services in the cluster (active network traffic needed)
collector
- OpenTelemetry collector with a custom metrics receiver to inspect pod-level network traffic.synthetic_traceassembler
- Python script that generates synthetic traces by querying the public Lightstep API for metrics sent by the collector (query_timeseries
endpoint).
Deploy a collector to a Kubernetes cluster to get metrics to build traces.
See collector/readme.md
for instructions.
After the cluster is running, assemble synthetic traces from the metrics being sent into the account.
-
Install python dependencies:
pip3 install -r requirements.txt
-
Make some synthetics traces from metrics:
# these are different values!
$ export LS_PROJ=your-ls-project-name
$ export LS_ORG=your-ls-org-name
$ export LS_API_TOKEN=your-api-token
$ export LS_ACCESS_TOKEN=your_access_token
$ python3 traceassembler.txt
- Enjoy dependency maps without any trace instrumentation ๐