Configurable Sonarqube data collection by InfluxDB

Is the collection of Sonarqube data by InfluxDB configurable ?
I am currently using it inside groovy scripts executed on a pipeline in a Jenkins instance, and I would like to be able to tell it whether to collect them or not.