OK,
About reusing the code for sending data to a time-series backend that support the graphite protocol, the source file is "\src\components\org\apache\jmeter\visualizers\backend\graphite\GraphiteBackendListenerClient.java"
I am not sure if/how within the code of the PerfMon section there is access to the "Backend Listener" section in a thread group (I am quite new to JMeter), but if it does, it might be best to read the InfluxDB/Graphite connection parameters from there (instead of creating another configuration).
The new time series could use the following naming schema "metrics.<server>.<metricName>", since it makes sense to have a single time series for a particular metric, gathered on a particular server.
Is anyone interested in implementing this? Or is it expected that such ideas for extensions come in the form of a pull request? :)
Cheers