code: def SetupPrometheusExportsFromConfig():
      
      port = getattr(settings, 'PROMETHEUS_METRICS_EXPORT_PORT', None)
      port_range = getattr(
          settings, 'PROMETHEUS_METRICS_EXPORT_PORT_RANGE', None)
      addr = getattr(settings, 'PROMETHEUS_METRICS_EXPORT_ADDRESS', '')
      if port_range:
          SetupPrometheusEndpointOnPortRange(port_range, addr)
      elif port:
          SetupPrometheusEndpointOnPort(port, addr)
docs: Exports metrics so Prometheus can collect them.