How to collect data efficiently with a command tool which taking 1s to collect one sample?

I have tried to dynamically chage the charts at the start of collector ( in function check), but the key problem is that there is no way to start multiple jobs in function check to collector multiple metrics of different devices at once with one tools which will take about 1s to run. If there is a way to dynamically load charts and dynamically load multiple jobs, it would be better that I don’t need to change configuration files.