{"id":18732449,"url":"https://github.com/metrico/loki-action","last_synced_at":"2025-04-12T18:31:17.683Z","repository":{"id":57857680,"uuid":"527285864","full_name":"metrico/loki-action","owner":"metrico","description":"Push Github Action logs to LoQL APIs (qryn, loki)","archived":false,"fork":false,"pushed_at":"2023-08-30T21:34:21.000Z","size":6447,"stargazers_count":7,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-19T14:17:14.190Z","etag":null,"topics":["clickhouse","github-action","github-actions","logging","logql","logs","loki","qryn","remote"],"latest_commit_sha":null,"homepage":"https://qryn.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/metrico.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2022-08-21T17:58:47.000Z","updated_at":"2024-09-05T19:57:07.000Z","dependencies_parsed_at":"2023-01-11T17:23:21.727Z","dependency_job_id":null,"html_url":"https://github.com/metrico/loki-action","commit_stats":{"total_commits":49,"total_committers":2,"mean_commits":24.5,"dds":"0.44897959183673475","last_synced_commit":"305067c65622131315316068406d705a324f989a"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Floki-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Floki-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Floki-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/metrico%2Floki-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/metrico","download_url":"https://codeload.github.com/metrico/loki-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248613317,"owners_count":21133491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clickhouse","github-action","github-actions","logging","logql","logs","loki","qryn","remote"],"created_at":"2024-11-07T15:06:08.487Z","updated_at":"2025-04-12T18:31:12.667Z","avatar_url":"https://github.com/metrico.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca href=\"https://qryn.dev\" target=\"_blank\"\u003e\u003cimg src='https://user-images.githubusercontent.com/1423657/218816262-e0e8d7ad-44d0-4a7d-9497-0d383ed78b83.png' width=250\u003e\u003c/a\u003e\n\n# LogQL Push Action\n\nCollect and ship logs from a Github Actions workflow to a LogQL Push API ([qryn](https://qryn.metrico.in), [loki](https://grafana.com/oss/loki/))\n\n## Usage\n\n```yaml\nsome-job:\n  runs-on: ubuntu-latest\n  steps:\n    - name: checkout\n      uses: actions/checkout@v2\n    - name: build\n      run: this-will-fail\n    - name: qryn-logs\n      if: failure()\n      uses: metrico/loki-action@V3.1\n      with:\n        repo-token: ${{ secrets.GITHUB_TOKEN }}\n        endpoint: ${{ secrets.LOGQL_ENDPOINT }}\n        username: ${{ secrets.LOGQL_USER }}\n        password: ${{ secrets.LOGQL_PASS }}\n        job-names: build\n```\n\n## Development\n\nInstall the dependencies\n\n```bash\n$ npm install\n```\n\nLint and package it for distribution\n\n```bash\n$ npm run all\n```\n\n\n#### Acknowledgements\n\nLoosely based on [elastic-logs](https://github.com/masci/elastic-logs) by [masci](https://github.com/masci)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrico%2Floki-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmetrico%2Floki-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmetrico%2Floki-action/lists"}