Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release 0.1.0 #3

Merged
merged 3 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
![GitHub_headerImage](https://user-images.githubusercontent.com/3262610/221191767-73b8a8d9-9f8b-440e-8ab6-75cb3c82f2bc.png)

This GitHub action allows you to instrument a pipeline and track number of runs and their duration; the data is then exported to a prometheus aggregation gateway, like [prom-aggregation-gateway](https://github.com/zapier/prom-aggregation-gateway).
This GitHub action allows you to instrument a pipeline and track number of runs and their duration; the data is then exported to a prometheus aggregation gateway, such as one of these:

- [Prometheus Pushgateway](https://github.com/prometheus/pushgateway)
- [Gravel Gateway](https://github.com/sinkingpoint/prometheus-gravel-gateway/tree/master)
- [Prometheus Aggregation Gateway](https://github.com/zapier/prom-aggregation-gateway)

Due to limitations of GitHub actions, tracking success rate is only possible via api, so it is outside the scope of this action (for now).

## Usage
Expand All @@ -11,9 +16,10 @@ Just add the action as a step to your job, and provide the url of the prometheus
steps:
- uses: autometrics-dev/instrument-pipeline@v0
with:
pushgateway: http://pushgateway.example.com/metrics
pushgateway: http://pushgateway.example.com
gatewaytype: prometheus
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
Expand All @@ -26,7 +32,13 @@ Now every time the action runs, it will send the duration (and increase the run

### `pushgateway`

**Required** The url of the prometheus aggregation gateway, with the `/metrics` endpoint.
**Required**

URL to the aggregation gateway, for example `http://localhost:9091`.

### `gatewaytype`

Type of the aggregation gateway, one of `prometheus`, `gravel`, or `zapier`. Currently only changes the url format in case of prometheus.

### `buckets`

Expand Down
5 changes: 0 additions & 5 deletions scripts/simulate-build.js

This file was deleted.

Loading