An open API service indexing awesome lists of open source software.

https://github.com/metrico/loki-action

Push Github Action logs to LoQL APIs (qryn, loki)
https://github.com/metrico/loki-action

clickhouse github-action github-actions logging logql logs loki qryn remote

Last synced: about 2 months ago
JSON representation

Push Github Action logs to LoQL APIs (qryn, loki)

Awesome Lists containing this project

README

        

# LogQL Push Action

Collect and ship logs from a Github Actions workflow to a LogQL Push API ([qryn](https://qryn.metrico.in), [loki](https://grafana.com/oss/loki/))

## Usage

```yaml
some-job:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: build
run: this-will-fail
- name: qryn-logs
if: failure()
uses: metrico/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
endpoint: ${{ secrets.LOGQL_ENDPOINT }}
username: ${{ secrets.LOGQL_USER }}
password: ${{ secrets.LOGQL_PASS }}
job-names: build
```

## Development

Install the dependencies

```bash
$ npm install
```

Lint and package it for distribution

```bash
$ npm run all
```

#### Acknowledgements

Loosely based on [elastic-logs](https://github.com/masci/elastic-logs) by [masci](https://github.com/masci)