Common: rewrite check_transfer_queue_status#147
Common: rewrite check_transfer_queue_status#147voetberg wants to merge 2 commits intorucio:masterfrom
Conversation
voetberg
commented
Aug 6, 2024
- Rewrite base query with sqla2.0
- Move CASE statements into python logic - This I am less confident I got it correct, I could not figure out exactly what the external_host is supposed to look like. The probe has been broken a long time in CMS int and prod so I'm missing some reference material there.
- Sort Imports
- Update header
- Update exception statement
- Change gauge to PrometheusPusher
4ad7968 to
1d4c3ba
Compare
* Rewrite base query with sqla2.0 * Move CASE statements into python logic * Sort Imports * Update header * Update exception statement * Change gauge to PrometheusPusher
1d4c3ba to
884bbcd
Compare
dchristidis
left a comment
There was a problem hiding this comment.
Nicely done. I’m happy on my end.
dchristidis
left a comment
There was a problem hiding this comment.
I‘m afraid I have to withdraw my approval.
There is a significant change that was not mentioned at all in the commit: the metric name has been changed from conveyor_queues_requests to rucio_probes_transfer. Also state now contains the queues.requests. prefix, which doesn’t look right to me.
Similarly, the other two PRs I approved will have to be revisited.
I think the Prometheus pusher automatically appends
That was from the original query (unless I missed a post-processing step in the original? That case statement just makes my head spin so it's a possibility) |
|
Correct. "rucio_probes" (or "rucio.probes" for Graphite) is added by the pusher Line 17 in a7c0556 I'm going to approve this. |
|
Closing in favor of #161 |