peimanja / promtool-github-actions Goto Github PK
View Code? Open in Web Editor NEWGitHub Action for checking Prometheus Configs and Alert rules
GitHub Action for checking Prometheus Configs and Alert rules
Hello,
any chance to improve the script on validating also PrometheusRule manifests?
I tried adding files to this action. But it is failing, I tried multiple ways. Do you have any idea how we can resolve this?
for ex:
promtool_actions_files: | - 'rules/env1-rules/*.y*ml' - 'rules/env2-rules/*.y*ml'
I'd like to somewhat future-proof my github action to validate .yaml config files with .gitignore style directory matching.
Example:
my_prometheus_project/deploy/**/*_prometheus_configs/*.yml
2019-12-19T14:47:03.4053252Z ##[section]Starting: Request a runner to run this job
2019-12-19T14:47:03.5139875Z Requesting a hosted runner in current repository's enterprise with labels: 'ubuntu-latest', require runner match: True
2019-12-19T14:47:03.5889466Z Labels matched hosted runners has been found, waiting for one of them get assigned for this job.
2019-12-19T14:47:03.6239481Z ##[section]Finishing: Request a runner to run this job
2019-12-19T14:47:09.3508446Z Current runner version: '2.163.1'
2019-12-19T14:47:09.3509648Z Prepare workflow directory
2019-12-19T14:47:09.3737580Z Prepare all required actions
2019-12-19T14:47:09.3762789Z Download action repository 'actions/checkout@master'
2019-12-19T14:47:11.3090536Z Download action repository 'peimanja/promtool-github-actions@master'
2019-12-19T14:47:11.6786597Z Download action repository 'peimanja/promtool-github-actions@vmaster'
2019-12-19T14:47:11.7868978Z ##[warning]Failed to download action 'https://api.github.com/repos/peimanja/promtool-github-actions/tarball/vmaster'. Error Response status code does not indicate success: 404 (Not Found).
2019-12-19T14:47:11.7874710Z ##[warning]Back off 17.589 seconds before retry.
2019-12-19T14:47:29.5316948Z ##[warning]Failed to download action 'https://api.github.com/repos/peimanja/promtool-github-actions/tarball/vmaster'. Error Response status code does not indicate success: 404 (Not Found).
2019-12-19T14:47:29.5319327Z ##[warning]Back off 27.557 seconds before retry.
2019-12-19T14:47:57.2715204Z ##[error]Response status code does not indicate success: 404 (Not Found).
Using promtool_actions_version: 2.40.7
which is the latest tag at the time of writing results in the following error:
| Downloading Promtool v2.40.7
| Successfully downloaded Promtool v2.40.7
| Unzipping Promtool v2.40.7
| Failed to unzip Promtool v2.40.7
Workaround is just to use a previous release version. If I have time at some stage I will take a look into a fix.
The command, git ls-remote --tags --refs --sort="v:refname" git://github.com/prometheus/prometheus
in main.sh fails with error,
Checking the latest version of Promtool
fatal: remote error:
The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
Failed to fetch the latest version
The cause is likely this, the changes having been made permanent on 2022-03-15.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.