-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tmpnet] Add check for collection of logs and metrics to custom github action #3740
base: tmpnet-managed-collectors
Are you sure you want to change the base?
[tmpnet] Add check for collection of logs and metrics to custom github action #3740
Conversation
ab202c2
to
fd27d90
Compare
3ec85e1
to
2e6404a
Compare
91b64a7
to
4dce5a1
Compare
453b332
to
e4243fc
Compare
@@ -388,6 +388,8 @@ github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M | |||
github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= | |||
github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= | |||
github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= | |||
github.com/jpillora/backoff v1.0.0 h1:uvFg412JmmHBHw7iwprIxkPMI+sGQ4kzOWsMeHnm2EA= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is go.sum
changed with no corresponding change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's because of my use of the prometheus client. I didn't add any deps but the go mod job failed and this was the result of running 'go mod tidy'.
4dce5a1
to
1a5222c
Compare
424f7dc
to
198b68f
Compare
198b68f
to
049efef
Compare
Why this should be merged
Adds checks to the run-monitored-tmpnet-cmd custom github action that verifies that logs were collected to loki and metrics were collected to prometheus for the job. A failing check will fail the job, ensuring that collection of logs and metrics doesn't silently fail to occur. This should also make reuse easier since any configuration issue will be more obvious.
How this works
tmnetctl check-metrics
to enable querying prometheus for metrics labeled for a github runtmnetctl check-logs
to enable querying loki for logs labeled for a github runHow this was tested
tmpnetctl check-metrics
passes for a network UUID for which metrics existtmpnetctl check-metrics
fails for a non-existent network UUIDNeed to be documented in RELEASES.md?
N/A
TODO