goplugin/push-gha-metrics-action
Push metrics collected from the currently executing job to as loki logs
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| id | A unique ID to use for this workflow, helps to keep metrics together when workflow names change | yes | — |
| github-token | The github token used to make API requests to gather metrics data | yes | ${{ github.token }} |
| this-job-name | The name of the currently running job, needed when the `job[job_id].name` key is specified, and when matrices are used. | no | — |
| basic-auth | Basic auth to use to sending requests to loki, such as "bobsmith:hunter2" | no | — |
| org-id | The organization/tenant id to use when sending requests to loki. See https://grafana.com/docs/loki/latest/operations/multi-tenancy/. | no | — |
| hostname | The hostname of the loki instance to connect to, such as "my-logs.grafana.net" | yes | — |
| protocol | The protocol to use when sending requests to loki such as "http" or "https". Defaults to "https" | yes | https |
| port | The port to use when sending requests to loki such as "443". Defaults to "443" | yes | 443 |
| path | The endpoint path to /loki/api/v1/push | yes | /loki/api/v1/push |
| dry-run | Execute the action till the point of sending a loki request, but don't actually send the request | yes | false |
| timeout | The timeout in milliseconds to use when sending requests to loki | yes | 3000 |
| test-results-file | Json test result file to attach to the output logs, available types: go example: {"testType":"go","filePath":"./go_test_results_path.json"} | no | "" |
| test-results-batch-split-size | The byte size to break apart metric logs into. Defaults to 512 KB (1 * 1024 * 512) | no | 524288 |
| additional-information | JSON field to pass an additional information about msig proposals example: {"source": "msig proposal", "data": {"network": "mainnet", "command": "command 1"}} | no | — |
| matrix-aggregator-status | Used to collect the status of an aggregation job. Mostly useful to know whether it was a normal success or a cancelled job | no | — |
Outputs
no outputs