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)
- Host: GitHub
- URL: https://github.com/metrico/loki-action
- Owner: metrico
- License: mit
- Created: 2022-08-21T17:58:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-30T21:34:21.000Z (almost 2 years ago)
- Last Synced: 2025-03-19T14:17:14.190Z (3 months ago)
- Topics: clickhouse, github-action, github-actions, logging, logql, logs, loki, qryn, remote
- Language: JavaScript
- Homepage: https://qryn.dev
- Size: 6.15 MB
- Stars: 7
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
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)