Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/catchpoint/foresight-workflow-kit-action
https://github.com/catchpoint/foresight-workflow-kit-action
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/catchpoint/foresight-workflow-kit-action
- Owner: catchpoint
- License: mit
- Created: 2022-06-30T17:06:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-04T12:52:08.000Z (almost 2 years ago)
- Last Synced: 2024-03-14T18:35:57.236Z (9 months ago)
- Language: TypeScript
- Size: 9.72 MB
- Stars: 5
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# foresight-workflow-kit-action
A GitHub Action to track and monitor the resource metrics of your GitHub Action workflow runs. If the run is triggered via a Pull Request, it will create a comment on the connected PR with the results and/or publishes the results to the job summary. The action collects the following metrics:
- CPU Load (user and system) in percentage
- Memory usage (used and free) in MB
- Network I/O (receive and transmit) in MB
- Disk I/O (read and write) in MB## Usage
To use the action, add the following step before the steps you want to track.
```yaml
- name: Collect Workflow Telemetry
uses: runforesight/foresight-workflow-kit-action@v1
with:
api_key:
```## Configuration
| Option | Requirement | Description
| --- | --- | ---
| `api_key` | Optional | Foresight API Key. Foresight API key is **required** for private repositories but **optional** for public open-source repositories
| `github_token` | Optional | An alternative GitHub token, other than the default provided by GitHub Actions runner.
| `min_proc_duration` | Optional | Minimum duration value in milliseconds to trace processes. Must be a number. Defaults to '-1' (no min value).
| `trace_sys_procs` | Optional | Enables tracing default system processes ('aws', 'cat', 'sed', ...). Defaults to 'false'.
| `stat_frequency` | Optional | Statistic collection frequency in seconds. Must be a number. Defaults to `5`.