def SetupPrometheusExportsFromConfig():
port = getattr(settings, '<STR_LIT>', None)<EOL>port_range = getattr(<EOL>settings, '<STR_LIT>', None)<EOL>addr = getattr(settings, '<STR_LIT>', '<STR_LIT>')<EOL>if port_range:<EOL><INDENT>SetupPrometheusEndpointOnPortRange(port_range, addr)<EOL><DEDENT>elif port:<EOL><INDENT>SetupPrometheusEndpointOnPort(port, addr)<EOL><DEDENT>
Exports metrics so Prometheus can collect them.