Skip to content

Export job execution metrics to a Prometheus aggregation gateway

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENCE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

autometrics-dev/instrument-pipeline

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
あで
Feb 27, 2024
16e8b2d · Feb 27, 2024

History

8 Commits
Feb 27, 2024
Jul 18, 2023
Feb 27, 2024
Jul 12, 2023
Jul 13, 2023
Jul 13, 2023
Jul 18, 2023
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024
Feb 27, 2024

Repository files navigation

GitHub_headerImage

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. 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

Just add the action as a step to your job, and provide the url of the prometheus aggregation gateway as an input:

steps:
  - uses: autometrics-dev/instrument-pipeline@v0
    with:
      pushgateway: http://pushgateway.example.com/metrics
  - uses: actions/checkout@v3
  - uses: actions/setup-node@v3
    with:
      node-version: 20
  - run: npm install
  - run: npm run build

Now every time the action runs, it will send the duration (and increase the run counter) of the run to the aggregation gateway.

Inputs

pushgateway

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

buckets

Array of buckets to use for the histogram. For example, [0, 1, 2, 5, 10, +Infinity].

About

Export job execution metrics to a Prometheus aggregation gateway

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENCE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks