Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felixge/dd-prof-upload
https://github.com/felixge/dd-prof-upload
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/felixge/dd-prof-upload
- Owner: felixge
- Created: 2021-07-08T10:44:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-26T10:42:56.000Z (about 2 years ago)
- Last Synced: 2024-10-11T15:18:54.328Z (2 months ago)
- Language: Go
- Size: 223 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dd-prof-upload
dd-prof-upload uploads pprof files to Datadog's Continuous Profiler. This is useful for sharing pprof files you captured yourself, or to reupload downloaded profiles after their retention period expired.
Quick Start:
```
# install
go install github.com/felixge/dd-prof-upload@latest# upload example propfiles
export DD_API_KEY=...
dd-prof-upload ./example/*
```**Important:** Your profiles should be named exactly like the ones in the [example](./example) folder, e.g. `cpu.pprof` for the CPU profile. Using different names might work, but some features might not work correctly.
Command line options:
```
Usage of dd-prof-upload:
-env string
The name of the environment to assign to the uploaded profiles. (default "dev")
-key string
A Datadog API key for your account. Defaults to DD_API_KEY.
-runtime string
The name of the runtime to attribute the profiles to. (default "go")
-service string
The name of the service to assign for the uploaded profiles. (default "dd-prof-upload")
-site string
The datadog site to upload to. Defaults to DD_SITE or "datadog.com". (default "datadoghq.com")
```