'Implements interface.'

def add_config(self, options, script):

    if (not options.monitoring_install_which):
        return
    if ((options.monitoring_install_which == 'prometheus') and (options.deploy_spinnaker_type == 'localdebian')):
        self.__inject_prometheus_node_exporter(options, script)
    script.append('mkdir    -p        ~/.hal/default/service-settings')
    script.append('echo    "host:    0.0.0.0"    >    ~/.hal/default/service-settings/monitoring-daemon.yml')
    script.append('hal    -q    --log=info    config    metric-stores    {which}    enable'.format(which=options.monitoring_install_which))
    if options.monitoring_prometheus_gateway:
        script.append('hal    -q    --log=info    config    metric-stores    prometheus    edit    --push-gateway    {gateway}'.format(gateway=options.monitoring_prometheus_gateway))
