code: def _create_cadvisor_prometheus_instance(self, instance):
          
          cadvisor_instance = deepcopy(instance)
          cadvisor_instance.update(
              {
                  'namespace': self.NAMESPACE,
                  # We need to specify a prometheus_url so the base class can use it as the key for our config_map,
                  # we specify a dummy url that will be replaced in the `check()` function. We append it with "cadvisor"
                  # so the key is different than the kubelet scraper.
                  'prometheus_url': instance.get('cadvisor_metrics_endpoint', 'dummy_url/cadvisor'),
                  'ignore_metrics': [
                      'container_cpu_cfs_periods_total',
                      'container_fs_inodes_free',
                      'container_fs_inodes_total',
                      'container_fs_io_current',
                      'container_fs_io_time_seconds_total',
                      'container_fs_io_time_weighted_seconds_total',
                      'container_fs_read_seconds_total',
                      'container_fs_reads_merged_total',
                      'container_fs_reads_total',
                      'container_fs_sector_reads_total',
                      'container_fs_sector_writes_total',
                      'container_fs_write_seconds_total',
                      'container_fs_writes_merged_total',
                      'container_fs_writes_total',
                      'container_last_seen',
                      'container_start_time_seconds',
                      'container_spec_memory_swap_limit_bytes',
                      'container_scrape_error',
                  ],
                  # Defaults that were set when CadvisorPrometheusScraper was based on PrometheusScraper
                  'send_monotonic_counter': instance.get('send_monotonic_counter', False),
                  'health_service_check': instance.get('health_service_check', False),
              }
          )
          return cadvisor_instance
docs: Create a copy of the instance and set default values.
          This is so the base class can create a scraper_config with the proper values.