def METHOD_NAME(self):
    user = self.driver.get_metric_collector_user(self.credential.user)
    password = self.driver.get_metric_collector_password(
        self.credential.password)
    create_telegraf_config = True
    if self.instance.instance_type == self.instance.REDIS_SENTINEL:
        if len(self.host.instances.all()) > 1:
            create_telegraf_config = False
    create_telegraf_init = create_telegraf_config
    if self.host.is_ol7:
        create_telegraf_init = False
    create_default_file = self.instance.instance_type in (
        self.instance.MYSQL, self.instance.MONGODB, self.instance.REDIS,
        self.instance.MYSQL_PERCONA)
    master_ssl_ca = None
    if self.infra.ssl_configured:
        from workflow.steps.util.ssl import InfraSSLBaseName
        infra_ssl = InfraSSLBaseName(self.instance)
        master_ssl_ca = infra_ssl.master_ssl_ca
    hostname = self.host.hostname
    if 'globoi.com' in hostname:
        hostname = hostname.split('.')[0]
    variables = {
        'HOSTNAME': hostname,
        'HOSTADDRESS': self.host.address,
        'PORT': self.instance.port,
        'USER': user,
        'PASSWORD': password,
        'MYSQL': self.instance.is_mysql,
        'MONGODB': self.instance.instance_type == self.instance.MONGODB,
        'REDIS': self.instance.instance_type == self.instance.REDIS,
        'CREATE_TELEGRAF_CONFIG': create_telegraf_config,
        'CREATE_TELEGRAF_INIT': create_telegraf_init,
        'CREATE_DEFAULT_FILE': create_default_file,
        'KAFKA_ENDPOINT': self.credential.endpoint,
        'KAFKA_TOPIC': self.kafka_topic,
        'SSL_CONFIGURED': self.infra.ssl_configured,
        'MASTER_SSL_CA':master_ssl_ca
    }
    return variables