NordicHPC / sonar

Tool to profile usage of HPC resources by regularly probing processes using ps.
GNU General Public License v3.0
8 stars 5 forks source link

Integrate https client into sonar? #147

Closed lars-t-hansen closed 6 months ago

lars-t-hansen commented 7 months ago

Instead of piping the output from Sonar to curl, what is now exfiltrate in Jobanalyzer could be integrated wholesale into Sonar, using eg reqwest. On the pro side, we don't depend on curl and we don't have to run a pipeline and two programs; reduces both complexity and load. On the con side, more complexity internal to Sonar.

I envision a --target switch specifying the target URL, optionally - otherwise output goes to stdout. We'd also need a switch or two to specify secrets: root certificates for the server and upload permissions for the HTTP connection. This is as in exfiltrate.

(This is related to #143 clearly since that is a bit of exfiltrate that is moving into Sonar.)

Mostly a matter of taste? No sense in doing this until we're sure it's the right thing to do, but wanted to examine the possibility.

lars-t-hansen commented 6 months ago

My new scripts use curl to exfiltrate data a la #143 and this works fine.