Git Product home page Git Product logo

influxdb-write-action's Introduction

influxdb-write-action

GitHub Action to write data from your GitHub workflows into a preconfigured InfluxDB instance.

Exaple usage

The GITHUB_TOKEN must have permissions for actions: read. If your token doesn't already have this, you can add it to the permissions section of your workflow.

permissions:
  actions: read

jobs:
  build:
    name: Send Data
    runs-on: ubuntu-latest
    steps:
      - name: Write data to InfluxDB
        uses: asimell/influxdb-write-action@main
        with:
          github_access_token: ${{ secrets.GITHUB_TOKEN }}
          influxdb_url: my.endpoint.com
          influxdb_bucket: my-bucket
          influxdb_org: my-org
          influxdb_token: ${{ secrets.influxdb_token }}

Available Settings

Name Default Description
github_access_token   Token to access Github API. GITHUB_TOKEN should be sufficient if you're sending data from the same workflow. 
repository ${{ github.repository }}  Repository where the data will be retrieved 
workflow_run_id  ${{ github.run_id }}   Workflow run ID of the data you want to write
 influxdb_url InfluxDB instance URL 
 influxdb_bucket InfluxDB instance bucket 
influxdb_org InfluxDB instance organization
influxdb_token InfluxDB access token
influxdb_timeout 10000  InfluxDB connection timeout in milliseconds 
 influxdb_verify_ssl  "true" Set this to false to skip verifying SSL certificate when calling API from https server 
influxdb_ssl_ca_cert Set this to customize the certificate file to verify the peer 
influxdb_cert_file Path to the certificate that will be used for mTLS authentication 
influxdb_cert_key_file Path to the file contains private key for mTLS certificate
influxdb_cert_key_password String or function which returns password for decrypting the mTLS private key
influxdb_connection_pool_maxsize 10000 Set the number of connections to save that can be reused by urllib3
influxdb_auth_basic Enable http basic authentication when talking to a InfluxDB 1.8.x without authentication but is accessed via reverse proxy with basic authentication (defaults to false)

Supported Metrics

Name Type Description
name  string  Name of the workflow 
path string  Path to the workflow file 
repository string  Name of the repository ({owner}/{name}
head_branch string  Name of the branch where the workflow is run 
run_number int Run number 
result string  success, failure, cancelled, skipped 
start_time date ISO 8601-format (YYYY-MM-DDTHH:mm:ssZ)  
duration int Elapsed time in seconds  
user string User who caused the workflow to run 
cause string The reason the workflow was run 

influxdb-write-action's People

Contributors

asimell avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.